Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable all disabled commands permanently

Tags:

emacs

I want to enable all disabled commands in Emacs such as downcase-region - that is, when invoked they do not ask confirmation from user. Unfortunately section "48.3.11 Disabling Commands" of Emacs manual says nothing on enabling all disabled commands permanently.

Emacs version: 24.0.95.1

like image 437
Mirzhan Irkegulov Avatar asked Apr 05 '12 09:04

Mirzhan Irkegulov


2 Answers

As written in EmacsWiki, you can add (setq disabled-command-function nil) to your init file, to enable all disabled commands:

like image 160
Alex Ott Avatar answered Nov 14 '22 18:11

Alex Ott


Copy such elisp into your ~/.emacs:

(put 'set-goal-column 'disabled nil)
(put 'narrow-to-region 'disabled nil)
(put 'upcase-region 'disabled nil)
(put 'downcase-region 'disabled nil)
(put 'scroll-left 'disabled nil)
(put 'erase-buffer 'disabled nil)
like image 27
Julian Qian Avatar answered Nov 14 '22 20:11

Julian Qian