|
From: | Alex Wei |
Subject: | Re: How to rebind keys "C-j" to join-line -- SOLVED! |
Date: | Tue, 7 Aug 2007 16:03:17 +0800 |
Hi all
I've figured out how to secure binding my keys :D , I found two hooks that
will guarantee my key-bindings will not be overrided.
(defun my-key-binding ()
"Customize my key bindings after Emacs startup." (interactive) ;; Key bindings (local-set-key (kbd "<RET>") 'newline-and-indent) (local-set-key (kbd "C-.") 'set-mark-command) (local-set-key (kbd "C--") 'kill-whole-line) (local-set-key (kbd "C-=") 'copy-whole-line) (local-set-key (kbd "C-o") 'open-newline) (local-set-key (kbd "C-j") 'join-line) ) (add-hook 'emacs-startup-hook 'my-key-binding)
(add-hook 'change-major-mode-hook 'my-key-binding) Thanks anyway!
Best Regards
Alex Wei
Sierra Atlantic
|
[Prev in Thread] | Current Thread | [Next in Thread] |