From 70836c39039d385b8cd34297f6d9cd8285157e13 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 11 Nov 2021 14:30:18 +0059 Subject: gkleen@sif: ... --- accounts/gkleen@sif/emacs.el | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'accounts') diff --git a/accounts/gkleen@sif/emacs.el b/accounts/gkleen@sif/emacs.el index 16a1c954..4bbf1951 100644 --- a/accounts/gkleen@sif/emacs.el +++ b/accounts/gkleen@sif/emacs.el @@ -20,11 +20,10 @@ (edit-server-start) (require 'mediawiki) -(add-hook 'mediawiki-mode-hook - (lambda () - (progn - (define-key mediawiki-mode-map (kbd "") nil) - (define-key mediawiki-mode-map (kbd "") nil)))) +(defun mediawiki-unbind-arrows () + (define-key mediawiki-mode-map (kbd "") nil) + (define-key mediawiki-mode-map (kbd "") nil)) +(add-hook 'mediawiki-mode-hook 'mediawiki-unbind-arrows) (global-subword-mode) (global-undo-tree-mode) -- cgit v1.2.3