2 ms·
Emacs, as has been mentioned multiple times in this thread, but I wanted to share a bit more about why. Emacs is a text manipulation environment, and it's incr
by bloopernova 2y ago
Emacs, as has been mentioned multiple times in this thread, but I wanted to share a bit more about why.
Emacs is a text manipulation environment, and it's incredibly powerful to be able to run any elisp code. In org-mode, I use plain lists and checkboxes often, and after inserting the checkbox, I always need to move my cursor 2 spaces to the right. Well, with Emacs and elisp, I can do that:
(defun my-org-toggle-checkbox-and-move-right ()
"Toggle checkbox and move cursor 2 spaces to the right."
(interactive)
(org-toggle-checkbox)
(forward-char 2))
;; Bind the function to a key if desired
;; (global-set-key (kbd "C-c t") 'my-org-toggle-checkbox-and-move-right)
Other examples: https://www.reddit.com/r/emacs/comments/1bgyq3y/wrote_my_first_function/ https://www.reddit.com/r/emacs/comments/1bgyq3y/wrote_my_fir... or https://blog.thomasheartman.com/posts/my-first-emacs-lisp https://blog.thomasheartman.com/posts/my-first-emacs-lisp or https://emacs.stackexchange.com/questions/54602/how-do-i-define-a-function-to-execute-as-a-command-with-m-x https://emacs.stackexchange.com/questions/54602/how-do-i-def...
And of course, because your config is text/code you can version control it, which allows rollbacks if you make a mistake ;)