diff options
author | Kyle Meyer <kyle@kyleam.com> | 2015-04-06 22:10:52 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2015-04-06 22:12:53 -0400 |
commit | 829a24605e1a993537733b206f4c1885f0a309b3 (patch) | |
tree | 7dcc9c60ee24564233b85dc09672302384d89101 | |
parent | 3a25a46254d7bea2c40f1f63b9cc873c934bc160 (diff) | |
download | emacs.d-829a24605e1a993537733b206f4c1885f0a309b3.tar.gz |
Add abbrevs for TRUE and FALSE in R
-rw-r--r-- | lisp/init-ess.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/init-ess.el b/lisp/init-ess.el index fb6376a..bf884f6 100644 --- a/lisp/init-ess.el +++ b/lisp/init-ess.el @@ -21,6 +21,16 @@ (add-to-list 'auto-mode-alist '("\\.[rR]\\'" . R-mode)) +(define-abbrev-table 'ess-mode-abbrev-table + '(("true" "TRUE") + ("false" "FALSE")) + :system t) + +(dolist (hook '(ess-mode-hook inferior-ess-mode-hook)) + (add-hook hook (lambda () + (setq local-abbrev-table ess-mode-abbrev-table))) + (add-hook hook 'abbrev-mode)) + (defvar km/ess-dplry-pipe-key "|") (defun km/ess-insert-dplyr-pipe () |