summaryrefslogtreecommitdiffstats
path: root/.emacs.d/init.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-12-30 13:07:26 +0100
committerGravatar Tom Willemse2013-12-30 13:07:26 +0100
commitfbe1ab92a4b5f5a9fb16ac441bc9c008b5e19578 (patch)
treef5647c26c6634f9c22657379ae0fad4e10730268 /.emacs.d/init.el
parent730ebf26a902d94bdf56e28e70409f6f0a4fa7a5 (diff)
downloademacs-fbe1ab92a4b5f5a9fb16ac441bc9c008b5e19578.tar.gz
emacs-fbe1ab92a4b5f5a9fb16ac441bc9c008b5e19578.zip
Add some docstrings to silence warnings
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r--.emacs.d/init.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index c917f0b..87e144a 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -145,6 +145,7 @@ MODE1 is enabled and vice-versa."
;;;; Typography
(defun init-locally-enable-double-spaces ()
+ "Specify that two spaces end a sentence in the current buffer."
(setq-local sentence-end-double-space t))
;; Use double spaces to end lines in Emacs Lisp. The checkdoc
@@ -154,6 +155,7 @@ MODE1 is enabled and vice-versa."
;;;; Symbols
(defun init-set-emacs-lisp-symbols ()
+ "Set a few extra UTF-8 symbols for use in emacs-lisp."
(when (boundp 'prettify-symbols-alist)
(setq prettify-symbols-alist
(append prettify-symbols-alist
@@ -163,6 +165,7 @@ MODE1 is enabled and vice-versa."
(defun init-set-python-symbols ()
+ "Set a few extra UTF-8 symbols for use in python."
(when (boundp 'prettify-symbols-alist)
(setq prettify-symbols-alist
'(("lambda" . ?λ)
@@ -189,6 +192,7 @@ MODE1 is enabled and vice-versa."
:weight 'normal))
(defun sort-imports ()
+ "Sort python multiline imports using `()'."
(interactive)
(save-excursion
(sort-lines nil (1+ (search-backward "("))