Added yaml-mode, added ctest to default compilation command.
This commit is contained in:
parent
0c4728d110
commit
c4d543f91c
18
init.el
18
init.el
|
@ -1,5 +1,5 @@
|
||||||
;;; init.el --- tastytea's Emacs init file.
|
;;; init.el --- tastytea's Emacs init file.
|
||||||
;; Time-stamp: <2019-04-13T18:37:55+00:00>
|
;; Time-stamp: <2019-04-14T01:30:26+00:00>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
;; I am using this file with Emacs 26, but most of it will probably work with
|
;; I am using this file with Emacs 26, but most of it will probably work with
|
||||||
|
@ -235,20 +235,22 @@ With argument, do this that many times."
|
||||||
(projectile-kill-buffers)
|
(projectile-kill-buffers)
|
||||||
(tabbar-ruler-group-user-buffers)
|
(tabbar-ruler-group-user-buffers)
|
||||||
(neotree-hide))
|
(neotree-hide))
|
||||||
|
(defvar my/cmake-compile-command ; cmake command for compiling with 1
|
||||||
|
(concat "cmake --build . -- -j" ; core less than available.
|
||||||
|
(substring (shell-command-to-string "nproc --ignore=1") 0 -1)))
|
||||||
:custom
|
:custom
|
||||||
(projectile-project-compilation-dir "build")
|
(projectile-project-compilation-dir "build")
|
||||||
(projectile-project-configure-cmd
|
(projectile-project-configure-cmd
|
||||||
"cmake -DCMAKE_BUILD_TYPE=Debug \
|
"cmake -DCMAKE_BUILD_TYPE=Debug \
|
||||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G 'Unix Makefiles' ..")
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G 'Unix Makefiles' ..")
|
||||||
;; Use 1 core less than available for compiling.
|
|
||||||
(projectile-project-compilation-cmd
|
|
||||||
(concat "cmake --build . -- -j"
|
|
||||||
(substring (shell-command-to-string "nproc --ignore=1") 0 -1)))
|
|
||||||
(projectile-switch-project-action 'neotree-projectile-action)
|
(projectile-switch-project-action 'neotree-projectile-action)
|
||||||
:config
|
:config
|
||||||
|
(setq projectile-project-compilation-cmd (concat my/cmake-compile-command
|
||||||
|
" && ctest ."))
|
||||||
(projectile-mode +1)
|
(projectile-mode +1)
|
||||||
;; Mark variables as safe. This prevents prompts when using .dir-locals.el.
|
;; Mark variables as safe. This prevents prompts when using .dir-locals.el.
|
||||||
(put 'projectile-project-configure-cmd 'safe-local-variable #'stringp)
|
(put 'projectile-project-configure-cmd 'safe-local-variable #'stringp)
|
||||||
|
(put 'projectile-project-compilation-cmd 'safe-local-variable #'stringp)
|
||||||
:bind
|
:bind
|
||||||
("C-c p" . 'projectile-command-map)
|
("C-c p" . 'projectile-command-map)
|
||||||
(:map projectile-command-map
|
(:map projectile-command-map
|
||||||
|
@ -844,6 +846,12 @@ With argument, do this that many times."
|
||||||
:mode
|
:mode
|
||||||
("\\.pdf\\'" . pdf-tools-install))
|
("\\.pdf\\'" . pdf-tools-install))
|
||||||
|
|
||||||
|
(use-package yaml-mode
|
||||||
|
:mode
|
||||||
|
("\\.yml\\'" . yaml-mode)
|
||||||
|
:hook
|
||||||
|
(yaml-mode . my/set-fill-column-80))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;; Server / Remote editing ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;; Server / Remote editing ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Edit remote files.
|
;; Edit remote files.
|
||||||
(unless slow-computer
|
(unless slow-computer
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
127.0.0.1:51313 5196
|
127.0.0.1:51313 12039
|
||||||
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh
|
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh
|
Loading…
Reference in New Issue
Block a user