Add src path and fix dashboard image
This commit is contained in:
parent
6cdd4f6aa3
commit
b794eebeb7
14
init.el
14
init.el
@ -51,6 +51,10 @@
|
|||||||
((text-mode tex-mode prog-mode) . auto-fill-mode)
|
((text-mode tex-mode prog-mode) . auto-fill-mode)
|
||||||
((text-mode tex-mode prog-mode) . my/-enable-show-trailing-whitespace))
|
((text-mode tex-mode prog-mode) . my/-enable-show-trailing-whitespace))
|
||||||
:init
|
:init
|
||||||
|
(with-eval-after-load 'find-func
|
||||||
|
(when (file-directory-p "~/src/emacs/src/")
|
||||||
|
(setq find-function-C-source-directory "~/src/emacs/src/")))
|
||||||
|
|
||||||
(defun my/-enable-show-trailing-whitespace ()
|
(defun my/-enable-show-trailing-whitespace ()
|
||||||
(setq-local show-trailing-whitespace t))
|
(setq-local show-trailing-whitespace t))
|
||||||
;; (defun my/-emacs-lisp-mode-setup-evil-lookup ()
|
;; (defun my/-emacs-lisp-mode-setup-evil-lookup ()
|
||||||
@ -2471,6 +2475,16 @@ one of the normal rainbow-delimiters-depth-N-face faces."
|
|||||||
;; dashboard.el
|
;; dashboard.el
|
||||||
(use-package dashboard
|
(use-package dashboard
|
||||||
:config
|
:config
|
||||||
|
(defvar-local my/-dashboard-did-fix-image nil
|
||||||
|
"Weather or not the dashboard image has been fixed in this buffer.")
|
||||||
|
(defun my/-dashboard-fix-image ()
|
||||||
|
(unless my/-dashboard-did-fix-image
|
||||||
|
(dashboard-refresh-buffer)
|
||||||
|
(setq my/-dashboard-did-fix-image t)))
|
||||||
|
(defun my/-dashboard-setup-function ()
|
||||||
|
(add-hook 'window-configuration-change-hook 'my/-dashboard-fix-image nil t))
|
||||||
|
(add-hook 'dashboard-mode-hook 'my/-dashboard-setup-function)
|
||||||
|
(set-face-background 'dashboard-banner-logo-title nil)
|
||||||
(dashboard-setup-startup-hook)
|
(dashboard-setup-startup-hook)
|
||||||
(setq initial-buffer-choice (lambda () (get-buffer-create "*dashboard*"))
|
(setq initial-buffer-choice (lambda () (get-buffer-create "*dashboard*"))
|
||||||
dashboard-force-refresh t
|
dashboard-force-refresh t
|
||||||
|
Loading…
Reference in New Issue
Block a user