creating my own shortcut
i use emacs for all sorts of typing and txt stuff problem is i mostly use command that dont have a keyboard shortcut so how can i create my try google but got only tutorials on emacs none explains my problem thx.
(like compile function from the menu) |
You could use Control with C (C-c) as it is reserved for user definition of commands. The following lines will define a prefix, a keymap and set a global key for accessing the keymap.
(defun Ctl-C-prefix ()) (setq Ctl-C-keymap (make-keymap)) (global-set-key "\C-c" (Ctl-C-prefix)) Here are some examples of how is used: (define-key Ctl-C-keymap "c" 'compile) (define-key Ctl-C-keymap "e" 'eval-buffer) (define-key Ctl-C-keymap "n" 'next-error) (define-key Ctl-C-keymap "f" 'auto-fill-mode) (define-key Ctl-C-keymap "g" 'goto-line) (define-key Ctl-C-keymap "$" 'ispell-buffer) (define-key Ctl-C-keymap "-" 'dabbrev-expand) |
thx i got one more question do you know how to activate the c++ highlight mode during execution of the program?
|
Meta-x font-lock-mode
Gülle Gülle, Tink |
Quote:
:) :) :) |
All times are GMT -5. The time now is 09:35 PM. |