From 5097c774acfc92aaa442371ea20e558901781bdd Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Mon, 24 Dec 2018 14:54:18 -0500 Subject: [PATCH] [emacs][wip] break out prog-mode, text-mode, and lisp-mode --- init.org | 48 ++++++++++++++++++++++++++++++------------------ 1 file changed, 30 insertions(+), 18 deletions(-) diff --git a/init.org b/init.org index 2c534da..0d3760b 100644 --- a/init.org +++ b/init.org @@ -1221,31 +1221,13 @@ TODO: break this giant source block down into individual org sections. (use-package dash :config (dash-enable-font-lock)) -(use-feature lisp-mode - :config - (add-hook 'emacs-lisp-mode-hook 'outline-minor-mode) - (add-hook 'emacs-lisp-mode-hook 'reveal-mode) - (defun indent-spaces-mode () - (setq indent-tabs-mode nil)) - (add-hook 'lisp-interaction-mode-hook #'indent-spaces-mode)) - (use-feature man :defer t :config (setq Man-width 80)) -(use-feature prog-mode - :config (global-prettify-symbols-mode) - (defun indicate-buffer-boundaries-left () - (setq indicate-buffer-boundaries 'left)) - (add-hook 'prog-mode-hook #'indicate-buffer-boundaries-left)) - (use-feature simple :config (column-number-mode)) -(progn ; `text-mode' - (add-hook 'text-mode-hook #'indicate-buffer-boundaries-left) - (add-hook 'text-mode-hook #'abbrev-mode)) - (use-feature tramp :defer t :config @@ -1311,6 +1293,36 @@ Automatically save place in each file. :config (save-place-mode)) #+end_src +** =prog-mode= + +#+begin_src emacs-lisp +(use-feature prog-mode + :config (global-prettify-symbols-mode) + (defun indicate-buffer-boundaries-left () + (setq indicate-buffer-boundaries 'left)) + (add-hook 'prog-mode-hook #'indicate-buffer-boundaries-left)) +#+end_src + +** =text-mode= + +#+begin_src emacs-lisp +(use-feature text-mode + :hook ((text-mode . indicate-buffer-boundaries-left) + (text-mode . abbrev-mode))) +#+end_src + +** =lisp-mode= + +#+begin_src emacs-lisp +(use-feature lisp-mode + :config + (add-hook 'emacs-lisp-mode-hook 'outline-minor-mode) + (add-hook 'emacs-lisp-mode-hook 'reveal-mode) + (defun indent-spaces-mode () + (setq indent-tabs-mode nil)) + (add-hook 'lisp-interaction-mode-hook #'indent-spaces-mode)) +#+end_src + ** COMMENT Company #+begin_src emacs-lisp -- 2.20.1