diff options
| -rw-r--r-- | ravi-init-appearance.el | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ravi-init-appearance.el b/ravi-init-appearance.el index 16730a8..c227b99 100644 --- a/ravi-init-appearance.el +++ b/ravi-init-appearance.el @@ -127,8 +127,13 @@ Delete all whitespace on a successive key press." ) ;; Enable automatic indentation, if possible -(bind-key "<return>" 'newline-and-indent prog-mode-map) -(bind-key "<return>" 'newline-and-indent emacs-lisp-mode-map) +(use-package smart-newline + :commands (smart-newline) + :init + (progn + (bind-key "<return>" 'smart-newline prog-mode-map) + (bind-key "<return>" 'smart-newline emacs-lisp-mode-map)) + :ensure t) ;; Zap up to char is more useful than zap-char (autoload 'zap-up-to-char "misc" "Kill up to, but not including ARGth occurrence of CHAR.") |
