Is there a key binding that moves the cursor to the last character in a buffer? I'm asking because I often find myself at a point other than the last character, where I want to be, in the interactive-shell.
C-end
(and M->
and another in default) runs command end-of-buffer
(into simple.el
), which moves cursor to the end of the buffer. With numeric argument, for example, C-u 4 C-end
, moves point to 4/10 from the end of the accessable part. With narrowed buffer moves point into the narrowed path of the buffer.
You could find all the keybindings for function with C-h f end-of-buffer RET
.
-
-
And
(goto-char (1- (point-max)))
do the same (puts point before the last character). – Konstantin Morenko Jul 26 '16 at 18:47
special-mode-map
uses>
for buffers like the*Help*
buffer. [Seesimple.el
.] Theglobal-map
usesC-end
. [Seebindings.el
.] Theesc-map
uses>
-- theesc
key is bound by default to theMeta
key on the GUI version of Emacs by way of themeta-prefix-char
. [Seebindings.el
.] – lawlist Jul 26 '16 at 17:26--with-ns
-- i.e., OSX -- the libraryns-win.el
sets up two additional ways to triggerend-of-buffer
with keyboard shortcuts -- i.e.,end
andkp-end
. For example, I can typefn+right
and go to the end of the buffer on my Mac. – lawlist Jul 26 '16 at 17:43