Advertisement
froleyks

temp.el

Sep 2nd, 2020
1,800
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.44 KB | None | 0 0
  1. (defun eshell/lsp (&rest args)
  2.   (mkdir "build" t)
  3.   (cd "build")
  4.   (eshell-command "cmake ..")
  5.   (eshell-command "cmake -H. -BDebug -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=YES ..")
  6.   ;; (eshell-command "make")
  7.   (cd "..")
  8.   (eshell-command "ln -s build/Debug/compile_commands.json .")
  9.   )
  10.  
  11. watch all files in directory
  12. (setq-default lsp-file-watch-threshold nil)
  13.  
  14. disable which-key slow due to lsp
  15. (spacemacs/toggle-which-key-off)
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement