diff --git a/init.el b/init.el index da1b881..12804b9 100644 --- a/init.el +++ b/init.el @@ -1,5 +1,5 @@ ;;; init.el --- tastytea's Emacs init file. -;; Time-stamp: <2019-05-13T21:16:16+00:00> +;; Time-stamp: <2019-05-14T22:00:21+00:00> ;;; Commentary: ;; I am using this file with Emacs 26, but most of it will probably work with @@ -105,6 +105,10 @@ "Set fill-column to 80." (set-fill-column 80)) + (defun my/set-fill-column-100 () + "Set fill-column to 100." + (set-fill-column 100)) + (defun my/set-fill-column-120 () "Set fill-column to 120." (set-fill-column 120)) @@ -129,7 +133,7 @@ :hook (prog-mode . my/set-fill-column-80) (conf-mode . my/set-fill-column-80) - (html-mode . my/set-fill-column-120) + (html-mode . my/set-fill-column-100) (text-mode . auto-fill-mode)) ; Enable word-wrapping at fill-column. ;; Save cursor position. @@ -178,6 +182,8 @@ With argument, do this that many times." ;; Switch windows. ("M-S-" . previous-multiframe-window) ("M-S-" . next-multiframe-window) + ;; Switch between header and implementation. + ("C-:" . ff-find-other-file) )) ;;;;;;;;;;;;;;;;;;;; Programming / general ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -761,13 +767,9 @@ With argument, do this that many times." :hook (find-file . auto-insert)) -;; Use conf-mode for openrc config files. -(use-package conf-mode - :mode - ("\\`/etc/conf\\.d/" . conf-mode) - ("\\`/etc/portage/package\\.use/" . conf-mode) - ("\\`/etc/portage/package\\.accept_keywords/" . conf-mode) - ) +(use-package bs + :bind + ("C-x C-b" . bs-show)) ;;;;;;;;;;;;;;;;;;;; LaTeX ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (if (executable-find "xetex") @@ -808,9 +810,16 @@ With argument, do this that many times." ("\\.tmpl\\'" . web-mode) ; Gitea templates ("\\.php\\'" . web-mode) :hook - (web-mode . my/set-fill-column-120)) + (web-mode . my/set-fill-column-100)) ;;;;;;;;;;;;;;;;;;;; Other file formats ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +(use-package conf-mode + :mode + ("\\`/etc/conf\\.d/" . conf-mode) ; Use conf-mode for openrc config files. + ("\\`/etc/portage/package\\.use/" . conf-mode) + ("\\`/etc/portage/package\\.accept_keywords/" . conf-mode) + ) + (use-package adoc-mode :mode ("\\.adoc\\'" . adoc-mode) diff --git a/server/server b/server/server index d453a1b..7abf094 100644 --- a/server/server +++ b/server/server @@ -1,2 +1,2 @@ -127.0.0.1:51313 24270 +127.0.0.1:51313 3637 phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh \ No newline at end of file