summaryrefslogtreecommitdiffstats
path: root/.emacs.d/init.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-08-17 01:23:22 +0200
committerGravatar Tom Willemse2013-08-17 01:23:22 +0200
commit2f74185bdfe84abea3396648601a7ef722d790ff (patch)
treefc482bc39cf5495a9d94268a72d665b3a32fe779 /.emacs.d/init.el
parent6d0999e20907345314d8fe8e1c42eb87a7f5ae63 (diff)
downloademacs-2f74185bdfe84abea3396648601a7ef722d790ff.tar.gz
emacs-2f74185bdfe84abea3396648601a7ef722d790ff.zip
Minor changes
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r--.emacs.d/init.el15
1 files changed, 13 insertions, 2 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 65f9632..03f5d3e 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -47,6 +47,14 @@
(declare (indent 0))
`(add-hook 'emacs-startup-hook #'(lambda () ,@body)))
+(defun init-make-readable ()
+ "Make non-programming buffers a little more readable."
+ (setq line-spacing .2))
+
+(defun init-set-keys-for-tagedit ()
+ "Set some keybindings for `tagedit-mode'."
+ (local-set-key (kbd "M-k") #'tagedit-kill-attribute))
+
(defmacro mode-hooks (&rest lst)
"Apply `add-mode-hooks' to each element of LST."
(declare (indent 0))
@@ -277,7 +285,8 @@ Also change directories to current working directory."
(or "bookmarks.org"
"contacts.org")) eol))
(rx (or "*ielm*" "*-jabber-roster-*" "*eshell*"
- "*ansi-term*"))
+ "*ansi-term*" "*slime-repl sbcl*"
+ "*slime-events*"))
(rx (and "*" (or "magit" "scratch-") (1+ anything)
"*")))
desktop-clear-preserve-buffers))
@@ -517,7 +526,8 @@ Also change directories to current working directory."
paredit-mode)
((comint) turn-on-compilation-shell-for-pony)
((css) rainbow-mode)
- ((emacs-lisp go html lua php python rst ruby rust sh) flycheck-mode)
+ ((emacs-lisp go html lua perl php python rst ruby rust sh)
+ flycheck-mode)
((emacs-lisp ielm) eldoc-mode)
((emacs-lisp ielm) set-emacs-lisp-keys)
((eshell) buffer-disable-undo)
@@ -541,6 +551,7 @@ Also change directories to current working directory."
((smartparens) set-smartparens-keys)
((tagedit) tagedit-add-experimental-features)
((tagedit) tagedit-add-paredit-like-keybindings)
+ ((tagedit) init-set-keys-for-tagedit)
((vala) oni:vala-mode-func))