![]() You can use this variable to see what mode you're in, if you need it. Buffer-local variablesīuffers have local variables, for example: (switch-to-buffer name) - switch to the buffer visually.(set-buffer buffer-or-name) - set the current buffer without.(current-buffer) - get the current buffer.Some handyįunctions, which you can run C-h f on to get more info: Operations thatĬlaim to work on "the buffer" work on this current buffer. Basic concepts BuffersĪll Emacs Lisp code when run has a current buffer. Other ones have been mentioned above as keybindings. The range of M-x describe- functions are useful: to jump to the identifer at point and M-, to Finding functions of keybindingsįind the function called by a keybinding: C-h k Ways to find what you need when you're writing Elisp code. Get the information you want in a few keystrokes. Use M-x eval-buffer to evaluate the whole buffer of Emacs LispĪ very important thing as an Emacs Lisp programmer is being able to.There is a REPL available by M-x ielm. ![]() This to re-apply defvar and defun declarations. Use C-M-x to evaluate the current top-level s-expression. ![]()
0 Comments
Leave a Reply. |