summaryrefslogtreecommitdiff
path: root/.emacs.d/init.el
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r--.emacs.d/init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index a86f700f..33344b4a 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -1251,6 +1251,12 @@ don't consider windows satisfying the predicate EXCLUDE."
;; often it does the wrong thing.
(setq-default electric-indent-inhibit t)
+;; Make it easy to use M-a to reach beginning of first sentence of a comment.
+(defun spw/backward-sentence-skip-forward ()
+ (interactive)
+ (call-interactively #'backward-sentence) (skip-syntax-forward " <"))
+(global-set-key [remap backward-sentence] #'spw/backward-sentence-skip-forward)
+
;;;; TRAMP