summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2018-12-24 14:54:18 -0500
committerAmin Bandali <bandali@gnu.org>2018-12-24 14:54:18 -0500
commit5097c774acfc92aaa442371ea20e558901781bdd (patch)
treec7a289ce93b5f776743abfbe52eb20d3d26f6953
parent6540f2c44d2948362e052c0048751d2bbfd2729a (diff)
downloadconfigs-5097c774acfc92aaa442371ea20e558901781bdd.tar.gz
configs-5097c774acfc92aaa442371ea20e558901781bdd.tar.xz
configs-5097c774acfc92aaa442371ea20e558901781bdd.zip
[emacs][wip] break out prog-mode, text-mode, and lisp-mode
Diffstat (limited to '')
-rw-r--r--init.org48
1 files 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