mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-20 18:54:39 +10:00
Fixing custom start file for emacs and emacsclient
This commit is contained in:
@@ -14,9 +14,6 @@
|
||||
- [[#calendar][CALENDAR]]
|
||||
- [[#centaur-tabs][CENTAUR-TABS]]
|
||||
- [[#clippy][CLIPPY]]
|
||||
- [[#dashboard][DASHBOARD]]
|
||||
- [[#configuring-dashboard][Configuring Dashboard]]
|
||||
- [[#dashboard-in-emacsclient][Dashboard in Emacsclient]]
|
||||
- [[#dired][DIRED]]
|
||||
- [[#keybindings-to-open-dired][Keybindings To Open Dired]]
|
||||
- [[#keybindings-within-dired][Keybindings Within Dired]]
|
||||
@@ -56,6 +53,7 @@
|
||||
- [[#registers][REGISTERS]]
|
||||
- [[#shells][SHELLS]]
|
||||
- [[#splits][SPLITS]]
|
||||
- [[#start-page][START PAGE]]
|
||||
- [[#winner-mode][WINNER MODE]]
|
||||
- [[#zap-to-char][ZAP TO CHAR]]
|
||||
|
||||
@@ -246,42 +244,6 @@ Gives us a popup box with "Clippy, the paper clip". You can make him say various
|
||||
|
||||
#+end_src
|
||||
|
||||
* DASHBOARD
|
||||
Emacs Dashboard is an extensible startup screen showing you recent files, bookmarks, agenda items and an Emacs banner.
|
||||
|
||||
** Configuring Dashboard
|
||||
#+begin_src emacs-lisp
|
||||
(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"))))
|
||||
#+end_src
|
||||
|
||||
** Dashboard in Emacsclient
|
||||
This setting ensures that emacsclient always opens on *dashboard* rather than *scratch*.
|
||||
#+begin_src emacs-lisp
|
||||
(setq doom-fallback-buffer-name "*dashboard*")
|
||||
#+end_src
|
||||
|
||||
* DIRED
|
||||
Dired is the file manager within Emacs. Below, I setup keybindings for image previews (peep-dired). Doom Emacs does not use 'SPC d' for any of its keybindings, so I've chosen the format of 'SPC d' plus 'key'.
|
||||
|
||||
@@ -1296,6 +1258,14 @@ I set splits to default to opening on the right using 'prefer-horizontal-split'.
|
||||
:desc "Clone indirect buffer other window" "b c" #'clone-indirect-buffer-other-window)
|
||||
#+END_SRC
|
||||
|
||||
* START PAGE
|
||||
Instead of using Doom's Dashboard or the Emacs Dashboard program, I have decided to just set an custom start file as my "dashboard" since it allows me more customization options.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(setq initial-buffer-choice "~/.config/doom/start.org")
|
||||
|
||||
#+end_src
|
||||
|
||||
* WINNER MODE
|
||||
Winner mode has been included with GNU Emacs since version 20. This is a global minor mode and, when activated, it allows you to “undo” (and “redo”) changes in the window configuration with the key commands 'SCP w <left>' and 'SPC w <right>'.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user