Skip to content

Instantly share code, notes, and snippets.

@robertzx
Created January 26, 2012 22:55
Show Gist options
  • Save robertzx/1685652 to your computer and use it in GitHub Desktop.
Save robertzx/1685652 to your computer and use it in GitHub Desktop.
;; There is a global file (~/.emacs.d/eproject.lst)
(defun prj-globalfile ()
(expand-file-name "eproject.lst"
(if (boundp 'user-emacs-directory) user-emacs-directory
"~/.emacs.d/")
))
;; with the list of all projects
(defvar prj-list)
;; and the project that was open in the last session (if any)
(defvar prj-last-open nil)
;; and the frame coords from last session
(defvar prj-frame-pos nil)
;; eproject version that created the config file
(defvar prj-version nil)
;; Here is a function to reset these
(defun prj-init ()
(setq prj-version nil)
(setq prj-list nil)
(setq prj-last-open nil)
(setq prj-frame-pos nil)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment