Compare commits
No commits in common. "6035a22ce4d0fa7546a84d3cf91b42b30bdaaba1" and "a550ccf9dc9cd94f0817d82a8c038d49852e219a" have entirely different histories.
6035a22ce4
...
a550ccf9dc
3
+ui.el
3
+ui.el
|
@ -8,8 +8,7 @@
|
||||||
(setq magit-display-buffer-function #'magit-display-buffer-fullframe-status-v1))
|
(setq magit-display-buffer-function #'magit-display-buffer-fullframe-status-v1))
|
||||||
;; Match pdf-tools colors to the theme and fit to page by default
|
;; Match pdf-tools colors to the theme and fit to page by default
|
||||||
(after! pdf-tools
|
(after! pdf-tools
|
||||||
(setq pdf-view-midnight-colors '("#BBC2CF" . "#282C34"))
|
(setq pdf-view-midnight-colors '("#BBC2CF" . "#282C34")))
|
||||||
(add-hook 'pdf-tools-enabled-hook 'pdf-view-midnight-minor-mode))
|
|
||||||
;; Customize modeline
|
;; Customize modeline
|
||||||
(setq doom-modeline-major-mode-icon t
|
(setq doom-modeline-major-mode-icon t
|
||||||
doom-modeline-buffer-encoding nil)
|
doom-modeline-buffer-encoding nil)
|
||||||
|
|
25
config.el
25
config.el
|
@ -37,21 +37,14 @@
|
||||||
(add-hook! 'csv-mode-hook 'csv-align-mode)
|
(add-hook! 'csv-mode-hook 'csv-align-mode)
|
||||||
(add-hook! 'csv-mode-hook 'csv-header-line)
|
(add-hook! 'csv-mode-hook 'csv-header-line)
|
||||||
;; Close compilation buffer if successful
|
;; Close compilation buffer if successful
|
||||||
(defun close-compilation-buffer-if-successful (buffer string)
|
(setq compilation-finish-functions
|
||||||
"Bury a compilation buffer if succeeded without warnings "
|
(lambda (buf str)
|
||||||
(when (and (eq major-mode 'compilation-mode)
|
(if (null (string-match ".*exited abnormally.*" str))
|
||||||
(string-match "finished" string)
|
(progn
|
||||||
(not
|
(run-at-time
|
||||||
(with-current-buffer buffer
|
"0.5 sec" nil 'delete-windows-on
|
||||||
(search-forward "warning" nil t))))
|
(get-buffer-create "*compilation*"))
|
||||||
(run-with-timer 1 nil
|
(message "No Compilation Errors!")))))
|
||||||
(lambda (buf)
|
|
||||||
(let ((window (get-buffer-window buf)))
|
|
||||||
(when (and (window-live-p window)
|
|
||||||
(eq buf (window-buffer window)))
|
|
||||||
(delete-window window))))
|
|
||||||
buffer)))
|
|
||||||
(add-hook 'compilation-finish-functions #'close-compilation-buffer-if-successful)
|
|
||||||
;; Map leader key for major mode to ,
|
;; Map leader key for major mode to ,
|
||||||
(setq evil-snipe-override-evil-repeat-keys nil)
|
(setq evil-snipe-override-evil-repeat-keys nil)
|
||||||
(setq doom-localleader-key ",")
|
(setq doom-localleader-key ",")
|
||||||
|
@ -163,5 +156,3 @@
|
||||||
(use-package! centered-cursor-mode
|
(use-package! centered-cursor-mode
|
||||||
:config
|
:config
|
||||||
(global-centered-cursor-mode))
|
(global-centered-cursor-mode))
|
||||||
;; Enable smooth scrolling
|
|
||||||
(pixel-scroll-precision-mode)
|
|
||||||
|
|
Loading…
Reference in New Issue