diff --git a/init.el b/init.el index e9cb5d9..f6486db 100644 --- a/init.el +++ b/init.el @@ -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 diff --git a/server/server b/server/server index 32ae7d0..6f99db5 100644 --- a/server/server +++ b/server/server @@ -1,2 +1,2 @@ -127.0.0.1:51313 5196 +127.0.0.1:51313 12039 phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh \ No newline at end of file