Fixing custom start file for emacs and emacsclient

This commit is contained in:
Derek Taylor
2023-01-08 14:02:13 -06:00
parent a06e9417ac
commit 9512bbe82a
6 changed files with 33 additions and 81 deletions

View File

@@ -100,32 +100,6 @@
:desc "Clippy describes function under point" "f" #'clippy-describe-function
:desc "Clippy describes variable under point" "v" #'clippy-describe-variable))
(use-package dashboard
:init ;; tweak dashboard config before loading it
(setq dashboard-set-heading-icons t)
(setq dashboard-set-file-icons t)
(setq dashboard-banner-logo-title "\nKEYBINDINGS:\
\nFind file (SPC .) \
Open buffer list (SPC b i)\
\nFind recent files (SPC f r) \
Open the eshell (SPC e s)\
\nOpen dired file manager (SPC d d) \
List of keybindings (SPC h b b)")
;;(setq dashboard-startup-banner 'logo) ;; use standard emacs logo as banner
(setq dashboard-startup-banner "~/.config/doom/doom-emacs-dash.png") ;; use custom image as banner
(setq dashboard-center-content nil) ;; set to 't' for centered content
(setq dashboard-items '((recents . 5)
;; (agenda . 5 ) ;; Agenda crashes Dashboard if using custom org-agenda.
(bookmarks . 5)
(projects . 5)
(registers . 5)))
:config
(dashboard-setup-startup-hook)
(dashboard-modify-heading-icons '((recents . "file-text")
(bookmarks . "book"))))
(setq doom-fallback-buffer-name "*dashboard*")
(map! :leader
(:prefix ("d" . "dired")
:desc "Open dired" "d" #'dired
@@ -798,6 +772,8 @@ List of keybindings (SPC h b b)")
(map! :leader
:desc "Clone indirect buffer other window" "b c" #'clone-indirect-buffer-other-window)
(setq initial-buffer-choice "~/.config/doom/start.org")
(map! :leader
(:prefix ("w" . "window")
:desc "Winner redo" "<right>" #'winner-redo