diff options
author | Amin Bandali <bandali@gnu.org> | 2018-12-24 14:54:18 -0500 |
---|---|---|
committer | Amin Bandali <bandali@gnu.org> | 2018-12-24 14:54:18 -0500 |
commit | 5097c774acfc92aaa442371ea20e558901781bdd (patch) | |
tree | c7a289ce93b5f776743abfbe52eb20d3d26f6953 | |
parent | 6540f2c44d2948362e052c0048751d2bbfd2729a (diff) | |
download | configs-5097c774acfc92aaa442371ea20e558901781bdd.tar.gz configs-5097c774acfc92aaa442371ea20e558901781bdd.tar.xz configs-5097c774acfc92aaa442371ea20e558901781bdd.zip |
[emacs][wip] break out prog-mode, text-mode, and lisp-mode
-rw-r--r-- | init.org | 48 |
1 files changed, 30 insertions, 18 deletions
@@ -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 |