Nithin Bekal

Posts About Notes Slides


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
(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 ~/.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))

Vim to evil-mode