From 5a9ed5919515bac0344a03cf66ce9217cd39080d Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 18 Dec 2015 20:38:07 +0100 Subject: Add tagedit library --- emacs/.emacs.d/init.el | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'emacs/.emacs.d/init.el') diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index bf1088c..1c84fb7 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -141,10 +141,6 @@ MODE1 is enabled and vice-versa." "Set the `disabled' property for each item in FUNCTIONS to nil." (mapc #'(lambda (f) (put f 'disabled nil)) functions)) -(defun oni:set-keys-for-tagedit () - "Set some keybindings for `tagedit-mode'." - (local-set-key (kbd "M-k") #'tagedit-kill-attribute)) - (defun oni:set-python-imenu-function () "Set the `imenu-create-index-function' variable. @@ -782,9 +778,14 @@ If no direction is given, don't split." (oni:add-hooks 'slime-repl-mode-hook #'paredit-mode #'set-up-slime-ac) -(oni:add-hooks 'tagedit-mode-hook - #'tagedit-add-experimental-features - #'tagedit-add-paredit-like-keybindings #'oni:set-keys-for-tagedit) +;; Use all the cool experimental tagedit features +(add-hook 'tagedit-mode-hook 'tagedit-add-experimental-features) + +;; Make tagedit behave somewhat like tagedit. +(add-hook 'tagedit-mode-hook 'tagedit-add-paredit-like-keybindings) + +;; Bind tagedit-specific keys +(add-hook 'tagedit-mode-hook 'oni:set-keys-for-tagedit) (oni:add-hooks 'texinfo-mode-hook #'outline-minor-mode) -- cgit v1.2.3-54-g00ecf