Created
February 12, 2012 19:32
-
-
Save jsulak/1810399 to your computer and use it in GitHub Desktop.
Emacs windows configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; This assumes that Cygwin is installed in C:\cygwin (the | |
;; default) and that C:\cygwin\bin is not already in your | |
;; Windows Path (it generally should not be). | |
(setq exec-path (cons "C:/cygwin/bin" exec-path)) | |
(setenv "PATH" (concat "C:\\cygwin\\bin;" (getenv "PATH"))) | |
;; Prevent issues with the Windows null device (NUL) | |
;; when using cygwin find with rgrep. | |
(defadvice grep-compute-defaults (around grep-compute-defaults-advice-null-device) | |
"Use cygwin's /dev/null as the null-device." | |
(let ((null-device "/dev/null")) | |
ad-do-it)) | |
(ad-activate 'grep-compute-defaults) | |
;; NT-emacs assumes a Windows command shell, which you change | |
;; here. | |
(setq shell-file-name "bash") | |
(setenv "SHELL" shell-file-name) | |
(setq explicit-shell-file-name shell-file-name) | |
(setq ediff-shell shell-file-name) | |
(setq explicit-sh-args '("--login" "-i")) | |
;; Set up cygwin-mount | |
(require 'cygwin-mount) | |
(cygwin-mount-activate) | |
;;; Add Cygwin Info pages | |
(setq Info-default-directory-list (append Info-default-directory-list (list "c:/cygwin/usr/info/"))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set home=C:\cygwin\home\jsulak\ | |
C:\emacs-24.0.92\bin\runemacs.exe %* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment