Emacs

This page contains a variety of useful links and notes on the text editor Emacs, roughly organized. I don’t reference them very often anymore but thought they might be useful to someone else.


Editing tricks

Text input

  • M-x (set-input-method 'TeX) RET tex RET
  • M-x (evil-ex-show-digraphs) RET

Good keybinds to remember

Orgmode

Clocking

Org Mode Exporting

HTML

LaTeX

org-reveal

:REVEAL_PROPERTIES:
#+REVEAL_ROOT: https://cdn.jsdelivr.net/npm/reveal.js
#+REVEAL_THEME: serif
#+REVEAL_TRANS: none
#+REVEAL_INIT_OPTIONS: slideNumber:true, margin:0.20, minScale: 0.001, maxScale: 2.0
#+REVEAL_TITLE_SLIDE: <h2>%t</h2><h4><em>%s</em><h4><br><br><br><p style="font-size: 20pt;">By %a, %e</p><h4>%d</h4>
#+REVEAL_REVEAL_JS_VERSION: 4
#+OPTIONS: timestamp:nil toc:1 num:nil
:END:
#+TITLE: Journalism 101 Online Breakout
#+SUBTITLE: and some misc catchall
#+AUTHOR: Jacob Boxerman
#+EMAIL: jboxerman@fwparker.org
#+DATE: August 23, 2021

Tables

  • Separators: Make new row with first column /. Put a < in each column that should have a separator.
  • Add solid line: org-table-insert-hline

Citations/Bibliography

org-columns

org-ql

  • (property "ARCHIVE_ITAGS" "cl")

Clocktables

  • (setq org-duration-format 'h:mm)
  • Today: #+BEGIN: clocktable :maxlevel 3 :block today :hidefiles t :compact t
  • This week: #+BEGIN: clocktable :maxlevel 3 :block thisweek :hidefiles t :compact t
  • All: #+BEGIN: clocktable :maxlevel 10 :tags t
  • Scopes (examples)
    • :scope ("work.org" "~/Dropbox/org/org-archive/homework-archive.org_archive" "~/Dropbox/org/org-archive/todo-archive.org_archive")
    • :scope (lambda () (directory-files-recursively (expand-file-name "org-archive" org-directory) "homework"))

My favorite themes

  1. jake-doom-plain/jake-doom-plain-dark
  2. doom-old-hope
  3. doom-dark+
  4. doom-molokai
  5. doom-one/doom-one-light
  6. nano
  7. kaolin-galaxy
  8. doom-snazzy
  9. modus-themes
  10. doom-miramare
  11. doom-peacock
  12. doom-flatwhite

Code

Python

  • run-python : begin shell thing
  • C-c C-c : run the content of the buffer in the opened python shell
  • C-c C-r : run the selected region in the python shell

ISpell

  • M-x ispell

Editing commands

*Select a number to auto-correct

  • SPC - skip for later
  • a - accept wrong word for buffer
  • i - insert word into personal dictionary

Misc

Packages I’ve installed for Emacs:

  • aspell (spellchecking)
  • chemacs (multiple emacs profiles)
  • emacs-plus
  • fd (faster find)
  • fzf (fuzzy file search)
  • gnu coreutils (gls, ggrep, etc)
  • ripgrep (faster grep)

Calc

Summing a Column of Numbers in Emacs :: jasani.org

Emacs commands to calculate sum, average, etc. of region - Super User

Elisp

Comparisons & Conditionals

Expressions

Lists

Manuals/Guides

People (blogs, configs)

Forums

Articles/posts/blogs

Packages