Skip to content

Instantly share code, notes, and snippets.

@elbeno
Created September 30, 2018 02:33
Show Gist options
  • Save elbeno/27a8c81e363541937263c9393eca1dfa to your computer and use it in GitHub Desktop.
Save elbeno/27a8c81e363541937263c9393eca1dfa to your computer and use it in GitHub Desktop.
Mini emacs presentation for CppCon 2018

Title slide settings

(setq org-reveal-title-slide
(concat "<div class='vertspace6'/>"
"<h2>Emacs birds-of-a-feather</h2><h3>Selected .emacs bits</h3></div>"
"<h3>%a / <a href=\"http://twitter.com/ben_deane\">@ben_deane</a></h3>"
"<h4>CppCon / %d</h4>"))
(set-face-foreground 'font-lock-comment-face "dark green")

Whitespace butler

https://github.com/lewang/ws-butler

(setq require-final-newline t)
(use-package ws-butler
  :ensure t
  :config
  (ws-butler-global-mode)
  :diminish
  ws-butler-mode)

Google-this

Google (with optional site-specificity) thing-at-point

(use-package google-this
  :ensure t
  :bind
  (("C-c <f1>" . google-this-cpp-reference)))

Git interactions

We all know magit?

Also:

  • gitconfig-mode
  • gitignore-mode
  • git-commit
  • git-timemachine
  • git-messenger
  • diff-hl

Other nice packages

  • comment-dwim-2
  • fill-column-indicator
  • undo-tree
  • modern-cpp-font-lock

http://github.com/elbeno/dotemacs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment