Skip to content

HTTPS clone URL

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.

(dolist
    (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)))
                        (cond
                         ((file-exists-p org) org)
                         ((file-exists-p el)  el)
                         (t dir)))))
         (?s (file . ,(concat starter-kit-dir "starter-kit.org")))
         (?r (file . ,(concat starter-kit-dir "starter-kit-registers.org")))))
  (set-register (car r) (cadr r)))
Jump to Line
Something went wrong with that request. Please try again.