Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d5a991c214
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (24 sloc) 1.22 kb

Starter Kit Registers

This is part of the Emacs Starter Kit.

Starter Kit Registers

Registers allow you to jump to a file or other location quickly. Use C-x r j followed by the letter of the register (i for init.el, r for this file) to jump to it.

You should add registers here for the files you edit most often.

    (r `((?i (file . ,(concat starter-kit-dir "init.el")))
         (?I (file . ,(let* ((user user-login-name)
                             (org (expand-file-name (concat user ".org") starter-kit-dir))
                             (el  (expand-file-name (concat user ".el") starter-kit-dir))
                             (dir (expand-file-name user starter-kit-dir)))
                         ((file-exists-p org) org)
                         ((file-exists-p el)  el)
                         (t dir)))))
         (?s (file . ,(concat starter-kit-dir "")))
         (?r (file . ,(concat starter-kit-dir "")))))
  (set-register (car r) (cadr r)))
Jump to Line
Something went wrong with that request. Please try again.