Skip to content

Instantly share code, notes, and snippets.

@vermiculus
Created February 8, 2014 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vermiculus/8885979 to your computer and use it in GitHub Desktop.
Save vermiculus/8885979 to your computer and use it in GitHub Desktop.
;; File: windows-setup.el
;; Author: Sean Allred
;; Date: Sat Feb 8 10:43:52 EST 2014
;; Description::
;; Minimal setup file for new users of Emacs on Windows.
;; Set variables as appropriate.
(let* ((username "Sean")
(start-directory (format "C:/Users/%s/Documents" username)))
(setq default-directory start-directory))
(let ((setup-type 'mingw) ; set to 'cygwin as appropriate
(mingw-path "C:\\MinGW\\bin")
(cygwin-path "C:\\cygwin64\\bin"))
(setenv "PATH"
(concat (getenv "PATH")
path-separator
(if (eq setup-type 'mingw) mingw-path
(if (eq setup-type 'cygwin) cygwin-path)))))
(define-key c-mode-map (kbd "C-c c") 'compile)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment