4
1
I know there is an existing shortcut to do this but I'd like to have the home key mapped to beginning-of-line instead of beginning-of-buffer.
I tried putting this in my ~/.emacs file but it seems like it is still being overwritten somehow:
(global-set-key [kp-home] 'beginning-of-line) ; [Home]
(global-set-key [home] 'beginning-of-line) ; [Home]
On that note, if anyone knows where the default keybindings are set when using emacs on FreeBSD I might be able to modify that file if it is overriding my .emacs.
EDIT: I am using FreeBSD 8.2 and accessing it through SSH/PuTTY.
This is my full .emacs file (nothing too crazy as you can see):
(keyboard-translate ?\C-h ?\C-?)
(add-to-list 'load-path "/home/sam/programs/go/go/misc/emacs/" t)
(require 'go-mode-load)
(global-set-key [kp-home] 'beginning-of-line) ; [Home]
(global-set-key [home] 'beginning-of-line) ; [Home]
This may or may not be related, but what OS are you using? You mention FreeBSD, but it's in a side note, so it's not entirely clear (at least to me) that it's the same as your main question. – Shauna – 2011-06-16T16:57:59.100
Your code seems correct. Can you try a
.emacs
containing just these two lines? – maxelost – 2011-06-17T12:18:34.810