Add Windows specific settings
This commit is contained in:
parent
2cba135ce5
commit
20497ccaf2
2 changed files with 30 additions and 0 deletions
25
custom/setup-windows.el
Normal file
25
custom/setup-windows.el
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
;; Windows performance tweaks
|
||||
;;
|
||||
(when (boundp 'w32-pipe-read-delay)
|
||||
(setq w32-pipe-read-delay 0))
|
||||
;; Set the buffer size to 64K on Windows (from the original 4K)
|
||||
(when (boundp 'w32-pipe-buffer-size)
|
||||
(setq irony-server-w32-pipe-buffer-size (* 64 1024)))
|
||||
|
||||
;; Set pipe delay to 0 to reduce latency of irony
|
||||
(setq w32-pipe-read-delay 0)
|
||||
|
||||
;; From "setting up irony mode on Windows" :
|
||||
;; Make sure the path to clang.dll is in emacs' exec_path and shell PATH.
|
||||
(setenv "PATH"
|
||||
(concat
|
||||
"C:\\msys64\\usr\\bin" ";"
|
||||
"C:\\msys64\\mingw64\\bin" ";"
|
||||
(getenv "PATH")
|
||||
)
|
||||
)
|
||||
(setq exec-path (append '("c:/msys64/usr/bin" "c:/alt/msys64/mingw64/bin")
|
||||
exec-path))
|
||||
|
||||
|
||||
(provide 'setup-windows)
|
||||
5
init.el
5
init.el
|
|
@ -81,6 +81,11 @@
|
|||
;; setup autocompletion
|
||||
(require 'setup-autocompletion)
|
||||
|
||||
;; setup Windows if our bootloader is Windows
|
||||
(if (eq system-type 'windows-nt)
|
||||
(require 'setup-windows)
|
||||
)
|
||||
|
||||
(custom-set-variables
|
||||
;; custom-set-variables was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue