Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.38 KB

starter-kit-windows.org

File metadata and controls

37 lines (28 loc) · 1.38 KB

Starter Kit Windows

Starter Kit Windows

What to do before use Emacs

  • Install and add PATH to Windows and MingW bashrc: universal-ctags, Git, MingW, Aspell, Emacs
  • Add export LANG=en_US.UTF8 to bashrc and set it to Windows environment

Add paths before Windows PATH

(when (setq bash-exec (executable-find "bash"))
  (setq mingw-bin-dir (file-name-directory bash-exec))
  (setenv "PATH" (concat mingw-bin-dir ";" (getenv "PATH")))
  (setq find-program (shell-quote-argument (concat mingw-bin-dir "find.exe")))
  (setq grep-program (shell-quote-argument (concat mingw-bin-dir "grep.exe")))
  (setq grep-command (format "%s -nH " grep-program))
  (setq grep-template (format "%s <X> <C> -nH <R> <F>" grep-program)))

(when (setq emacs-exec (executable-find "emacs"))
  (setq emacs-bin-dir (file-name-directory emacs-exec))
  (setenv "PATH" (concat emacs-bin-dir ";" (getenv "PATH"))))

(when (setq ctags-exec (executable-find "ctags"))
  (setq ctags-bin-dir (file-name-directory ctags-exec))
  (setenv "PATH" (concat ctags-bin-dir ";" (getenv "PATH"))))

Some tips

  • find file in another dist: key in /e:/
  • See prj/update-etags-files how to use start-process
  • Sometimes you should run program by cmd /c command in eshell
  • Run cmd with administrator and mklink link target