Nithin Bekal

Posts About Notes Slides

Emacs

brew install emacs --use-git-head --cocoa --srgb

Meta key doesn’t work on iTerm. To fix this, go to Prefs > Profiles > Keys. Set “Left option key acts as” to +Esc.

Looking up documentation

  • C-h f command-name - find which hotkey is assigned to the command.
  • C-h k key - find what a hotkey does

Open jekyll

My setup for opening my Jekyll blog in emacs and running jekyll serve in a shell buffer.

; jekyll.el
(interactive)
(pop-to-buffer (get-buffer-create (generate-new-buffer-name "jekyll")))
(shell (current-buffer))
(process-send-string nil "cd ~/Dropbox/blog\n")
(process-send-string nil "jekyll serve\n")

Now I can get my Jekyll blog running by:

emacs -nw --load path/to/jekyll.el

Trying out spacemacs

$ brew update $ brew install emacs –with-cocoa $ brew linkapps emacs

Install spacemacs:

git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d

Get mouse scrolling to work on iTerm2

;; dotspacemacs/user-config
(unless window-system
  (global-set-key (kbd "<mouse-4>") 'scroll-down-line)
  (global-set-key (kbd "<mouse-5>") 'scroll-up-line))

https://github.com/syl20bnr/spacemacs/issues/4591#issuecomment-223273558

Vim to evil-mode

Elixir

org-mode

Paredit