all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* howto disable automatic config editing
@ 2011-12-02  2:41 sergio
  2011-12-02  9:12 ` Valentin Baciu
  0 siblings, 1 reply; 2+ messages in thread
From: sergio @ 2011-12-02  2:41 UTC (permalink / raw)
  To: Emacs help

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.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: howto disable automatic config editing
  2011-12-02  2:41 howto disable automatic config editing sergio
@ 2011-12-02  9:12 ` Valentin Baciu
  0 siblings, 0 replies; 2+ messages in thread
From: Valentin Baciu @ 2011-12-02  9:12 UTC (permalink / raw)
  To: sergio; +Cc: Emacs help

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.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-02  9:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-02  2:41 howto disable automatic config editing sergio
2011-12-02  9:12 ` Valentin Baciu

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.