all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to reload init.el file without restart emacs
@ 2012-10-31 14:17 lvyiwang.com
  2012-10-31 14:57 ` Drew Adams
  0 siblings, 1 reply; 2+ messages in thread
From: lvyiwang.com @ 2012-10-31 14:17 UTC (permalink / raw)
  To: help-gnu-emacs

emacs edition: 24.2
platform: window 7

I have tried these methods, but they all don't work well.

C-x C-e ;; current line
M-x eval-region ;; region
M-x eval-buffer ;; whole buffer
M-x load-file ~/.emacs.d/init.el

What was wrong:
My settings:
(global-set-key (kbd "C-<") 'mc/mark-previous-like-this)
I toggle this line with ;;
And I used those methods, but "C-<" still works.

So, what's wrong? Thanks!


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

* RE: How to reload init.el file without restart emacs
  2012-10-31 14:17 How to reload init.el file without restart emacs lvyiwang.com
@ 2012-10-31 14:57 ` Drew Adams
  0 siblings, 0 replies; 2+ messages in thread
From: Drew Adams @ 2012-10-31 14:57 UTC (permalink / raw)
  To: lvyiwang.com, help-gnu-emacs

> (global-set-key (kbd "C-<") 'mc/mark-previous-like-this)
> I toggle this line with ;;
> And I used those methods, but "C-<" still works.
> So, what's wrong? Thanks!

Commenting out a binding does not remove it.
Commenting something out just skips doing that something.

To unbind the key, bind it to nil:
(global-set-key (kbd "C-<") nil)

You can also use `global-set-key' as a command, i.e., interactively.  In that
case, since `nil' is not a command, you cannot input it.  Instead, you can enter
the command `undefined', which has a similar effect:

M-x global-set-key
C-<
undefined




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

end of thread, other threads:[~2012-10-31 14:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-31 14:17 How to reload init.el file without restart emacs lvyiwang.com
2012-10-31 14:57 ` Drew Adams

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.