emacs-presentation/emacs.org
2021-04-17 01:03:01 -06:00

1.3 KiB

What is Emacs

  • Emacs is a super extensible programmable "editor"
  • You can write documents, code, agendas, emails, etc.
  • Editor in quotes because it does much more than edit stuff

    • Tetris is in Emacs by default
    • Browse the web!
    • I don't really know why you would though, but hey it's there

      • It can even be your window manager with the package exwm
    • Written in Elisp
  • A dialect of lisp written specifically for Emacs
  • All configurations are done in this language

    • Example:
      (split-window-below)
      (split-window-right)
    • By default, Emacs does not have a way to go back a "window"

      • Time to learn some Emacs Jargon!
      • Buffers

        • Buffers are kind of like tabs in a "regular" editor
      • Windows

        • These are where buffers can be drawn
        • Like splitting in vim
      • Frames

        • These are Emacs instances
        • What you would normally call a "window"

          • You really only need to know about buffers and windows
        • Let's look at some Elisp to do this for us!
        (defun go-back-window ()
      	(interactive)
      	(other-window -1))
      • Now if we want to bind this function to a key we can!
      (global-set-key (kbd "C-c u") 'go-back-window)