aboutsummaryrefslogtreecommitdiff
path: root/emacs/settings/init-edit.el
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2016-11-22 20:20:16 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2016-11-22 20:20:16 +0100
commit893fed9cfaaee85b27be247df3cbd21badc4b3b5 (patch)
tree12bd80374db4b221bb854ccd219419b0ec2af67c /emacs/settings/init-edit.el
parentc58884a6de81f856a8943a3a72719f6f63a1691a (diff)
downloaddotfiles-893fed9cfaaee85b27be247df3cbd21badc4b3b5.tar.gz
dotfiles-893fed9cfaaee85b27be247df3cbd21badc4b3b5.zip
emacs: minor improvements
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'emacs/settings/init-edit.el')
-rw-r--r--emacs/settings/init-edit.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/emacs/settings/init-edit.el b/emacs/settings/init-edit.el
index 1948dca..eef2617 100644
--- a/emacs/settings/init-edit.el
+++ b/emacs/settings/init-edit.el
@@ -73,9 +73,10 @@
(define-key evil-normal-state-map (kbd "\C-e") 'er/expand-region)
(define-key evil-visual-state-map (kbd "\C-e") 'er/expand-region)))
-; Directly taken from: https://github.com/magnars/expand-region.el. This way we
-; can also expand the region into paragraphs and pages in text mode.
(defun er/add-text-mode-expansions ()
+ "This way we can also expand the region into paragraphs & pages in text mode.
+Directly taken from: https://github.com/magnars/expand-region.el."
+
(make-variable-buffer-local 'er/try-expand-list)
(setq er/try-expand-list (append
er/try-expand-list