Added yaml-mode, added ctest to default compilation command.

This commit is contained in:
tastytea 2019-04-14 03:40:17 +02:00
parent 0c4728d110
commit c4d543f91c
2 changed files with 14 additions and 6 deletions

18
init.el
View File

@ -1,5 +1,5 @@
;;; 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:
;; 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)
(tabbar-ruler-group-user-buffers)
(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
(projectile-project-compilation-dir "build")
(projectile-project-configure-cmd
"cmake -DCMAKE_BUILD_TYPE=Debug \
-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)
:config
(setq projectile-project-compilation-cmd (concat my/cmake-compile-command
" && ctest ."))
(projectile-mode +1)
;; Mark variables as safe. This prevents prompts when using .dir-locals.el.
(put 'projectile-project-configure-cmd 'safe-local-variable #'stringp)
(put 'projectile-project-compilation-cmd 'safe-local-variable #'stringp)
:bind
("C-c p" . 'projectile-command-map)
(:map projectile-command-map
@ -844,6 +846,12 @@ With argument, do this that many times."
:mode
("\\.pdf\\'" . pdf-tools-install))
(use-package yaml-mode
:mode
("\\.yml\\'" . yaml-mode)
:hook
(yaml-mode . my/set-fill-column-80))
;;;;;;;;;;;;;;;;;;;; Server / Remote editing ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Edit remote files.
(unless slow-computer

View File

@ -1,2 +1,2 @@
127.0.0.1:51313 5196
127.0.0.1:51313 12039
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh