Add Windooze section
This commit is contained in:
parent
a2e0594ef1
commit
ce7bb16836
2 changed files with 31 additions and 25 deletions
31
config.org
31
config.org
|
|
@ -437,6 +437,37 @@ https://github.com/magnars/expand-region.el
|
|||
)
|
||||
#+END_SRC
|
||||
|
||||
* Windooze
|
||||
|
||||
When we use windows as our bootloader, we have to setup some things first:
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
;; 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))
|
||||
#+END_SRC
|
||||
|
||||
To be fair, I didn't test this in a while...
|
||||
|
||||
* Old stuff, maybe usefull for lookup later
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
|
|
|
|||
|
|
@ -1,25 +0,0 @@
|
|||
;; 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue