summaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/init.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2015-12-18 20:38:07 +0100
committerGravatar Tom Willemse2015-12-18 20:38:07 +0100
commit5a9ed5919515bac0344a03cf66ce9217cd39080d (patch)
tree2a417ac8c091aaa471d196a7692de8a31beba83f /emacs/.emacs.d/init.el
parentc75739c4065de8a12fa307fe895bed7ef44417d3 (diff)
downloaddotfiles-5a9ed5919515bac0344a03cf66ce9217cd39080d.tar.gz
dotfiles-5a9ed5919515bac0344a03cf66ce9217cd39080d.zip
Add tagedit library
Diffstat (limited to 'emacs/.emacs.d/init.el')
-rw-r--r--emacs/.emacs.d/init.el15
1 files changed, 8 insertions, 7 deletions
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)