Close compilation buffer and update paths

This commit is contained in:
coolneng 2020-01-23 14:49:15 +01:00
parent 95ad5dda2d
commit 262d05c9f5
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 17 additions and 3 deletions

View File

@ -14,6 +14,8 @@
(set-company-backend! 'org-mode nil) (set-company-backend! 'org-mode nil)
;; Turn off line numbers ;; Turn off line numbers
(add-hook 'org-mode-hook (lambda () (display-line-numbers-mode -1))) (add-hook 'org-mode-hook (lambda () (display-line-numbers-mode -1)))
;; Add Notes to agenda
(setq org-agenda-files '("~/Notes"))
;; Tailor Org super agenda ;; Tailor Org super agenda
(use-package! org-super-agenda (use-package! org-super-agenda
:after org-agenda :after org-agenda

View File

@ -5,7 +5,7 @@
;; Load appearance configuration ;; Load appearance configuration
(load! "+ui") (load! "+ui")
;; Set projects directories ;; Set projects directories
(setq projectile-project-search-path '("~/Sync/Projects")) (setq projectile-project-search-path '("~/Projects"))
; Auto cleanup recentf ; Auto cleanup recentf
(setq recentf-auto-cleanup '300) (setq recentf-auto-cleanup '300)
; Save backup files to ~/.cache and autosave files to ~/.cache/emacs ; Save backup files to ~/.cache and autosave files to ~/.cache/emacs
@ -28,8 +28,20 @@
(revert-buffer :ignore-auto :noconfirm)) (revert-buffer :ignore-auto :noconfirm))
;; Select target in Makefile compilation as default ;; Select target in Makefile compilation as default
(map! :leader :n "c c" #'makefile-executor-execute-project-target) (map! :leader :n "c c" #'makefile-executor-execute-project-target)
;; Choose docsets for Python ;; Set docsets for each language
(after! python (after! python
(set-docsets! 'python-mode "Python 3" "NumPy" "SciPy" "Pandas" "SQLAlchemy")) (set-docsets! 'python-mode "Python 3" "NumPy" "Pandas"))
(after! c++
(set-docsets! 'c++-mode "C++"))
;; Align columns in CSV mode ;; Align columns in CSV mode
(add-hook 'csv-mode-hook 'csv-align-mode) (add-hook 'csv-mode-hook 'csv-align-mode)
;; Close compilation buffer if successfull(setq compilation-finish-functions
(setq compilation-finish-functions
(lambda (buf str)
(if (null (string-match ".*exited abnormally.*" str))
;;no errors, make the compilation window go away in a few seconds
(progn
(run-at-time
"0.5 sec" nil 'delete-windows-on
(get-buffer-create "*compilation*"))
(message "No Compilation Errors!")))))