diff options
Diffstat (limited to 'lisp')
-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 () |