From 2f74185bdfe84abea3396648601a7ef722d790ff Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 17 Aug 2013 01:23:22 +0200 Subject: Minor changes --- .emacs.d/init.el | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to '.emacs.d/init.el') 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)) -- cgit v1.2.3-54-g00ecf