help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: howto disable automatic config editing


From: Valentin Baciu
Subject: Re: howto disable automatic config editing
Date: Fri, 2 Dec 2011 11:12:37 +0200

On Fri, Dec 2, 2011 at 4:41 AM, sergio <mailbox@sergio.spb.ru> wrote:
>
> Hello.
>
> I want to disable automatic editing my emacs config file.  I want to edit it
> only by hand.  Type emacs .emacs.d/init.el and make changes.  I've already
> added here (setq custom-file "/dev/null") but now, after pressing C-x C-u and
> answer yes I've received one more line here: (put 'upcase-region 'disabled 
> nil)
> How to stop this hell?
>
> --
> sergio.
>
I am not sure about disabling the automatic customization feature, but
once you have configured individual symbols you will not get prompted
again.

In your example, manually adding (put 'upcase-region 'disabled nil) to
your .emacs will disable future prompts for this particular setting.

Using the following code, I have extracted a list of symbols for which
the "disabled" property has been set in my configuration:

(mapatoms (lambda (sym)
     (when (find 'disabled (symbol-plist sym))
          (insert (format "%s\n" (symbol-name sym))))))

erase-buffer
narrow-to-region
set-goal-column
narrow-to-page
upcase-region
scroll-left
dired-find-alternate-file
erc-remove-text-properties-region
downcase-region

Once you have established which functions you need to disabled, you
can add something like this in your .emacs:

(mapcar (lambda (sym) (put sym 'disabled nil))
              '(downcase-region upcase-region))

Of course, the above code assumes that you want to have access to all
the features considered confusing or unsafe for people less familiar
with Emacs.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]