summaryrefslogtreecommitdiff
path: root/lisp/loadup.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-02-10 19:38:10 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2021-02-10 19:38:18 +0100
commit21e475ea0c0d04ae7634f377ed64fe179388b133 (patch)
tree5bf1e4ceb83407ba3ccca436476aabe5f3c3e955 /lisp/loadup.el
parent2e5d400ca6d7619cb4c0bcbd8abf5828127c77bf (diff)
downloademacs-21e475ea0c0d04ae7634f377ed64fe179388b133.tar.gz
emacs-21e475ea0c0d04ae7634f377ed64fe179388b133.tar.bz2
emacs-21e475ea0c0d04ae7634f377ed64fe179388b133.zip
Remove the 'M-o' ('facemap-keymap') binding experimentally
* doc/lispref/maps.texi (Standard Keymaps): * doc/lispref/keymaps.texi (Prefix Keys): Remove mentions. * etc/facemenu-removal.txt: New temporary file. * lisp/loadup.el: Don't load facemenu.el. (removed-facemenu-command): New command. (facemenu-keymap-restore): New function. * lisp/textmodes/text-mode.el (center-paragraph): Remove binding. (center-line): Remove binding.
Diffstat (limited to 'lisp/loadup.el')
-rw-r--r--lisp/loadup.el25
1 files changed, 22 insertions, 3 deletions
diff --git a/lisp/loadup.el b/lisp/loadup.el
index 9cee6a2fd83..3ee8bed1842 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -253,9 +253,6 @@
(load "startup")
(load "term/tty-colors")
(load "font-core")
-;; facemenu must be loaded before font-lock, because `facemenu-keymap'
-;; needs to be defined when font-lock is loaded.
-(load "facemenu")
(load "emacs-lisp/syntax")
(load "font-lock")
(load "jit-lock")
@@ -477,6 +474,28 @@ lost after dumping")))
;; Make sure we will attempt bidi reordering henceforth.
(setq redisplay--inhibit-bidi nil)
+
+;; Experimental feature removal.
+(define-key global-map "\M-o" #'removed-facemenu-command)
+
+(defun removed-facemenu-command ()
+ "Transition command during test period for facemenu removal."
+ (interactive)
+ (switch-to-buffer "*Facemenu Removal*")
+ (let ((inhibit-read-only t))
+ (erase-buffer)
+ (insert-file-contents
+ (expand-file-name "facemenu-removal.txt" data-directory)))
+ (goto-char (point-min))
+ (special-mode))
+
+(defun facemenu-keymap-restore ()
+ "Restore the facemenu keymap."
+ (require 'facemenu)
+ (define-key facemenu-keymap "\eS" 'center-paragraph)
+ (define-key facemenu-keymap "\es" 'center-line))
+
+
(if dump-mode
(let ((output (cond ((equal dump-mode "pdump") "emacs.pdmp")
((equal dump-mode "dump") "emacs")