diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-02-29 00:41:42 +0100 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-02-29 00:41:42 +0100 |
commit | b9251334db46ab45f1b1fb81d921f2935f54fb53 (patch) | |
tree | 444a6d0d75fe3546f0dcf06b013952eba307b92b /dotfiles | |
parent | Dotfiles: Emacs: Use vertico + consult (diff) | |
download | nixos-config-b9251334db46ab45f1b1fb81d921f2935f54fb53.tar.gz nixos-config-b9251334db46ab45f1b1fb81d921f2935f54fb53.tar.bz2 nixos-config-b9251334db46ab45f1b1fb81d921f2935f54fb53.zip |
Dotfiles: Emacs: Open dashboard with emacsclient
Diffstat (limited to '')
-rw-r--r-- | dotfiles/.emacs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/dotfiles/.emacs b/dotfiles/.emacs index e711dc0..10afdce 100644 --- a/dotfiles/.emacs +++ b/dotfiles/.emacs @@ -63,8 +63,6 @@ (setq warning-minimum-level :error) (setq inhibit-startup-screen t) -(savehist-mode 1) - ;; Disable toolbar, menubar and scrollbar (menu-bar-mode -1) (tool-bar-mode -1) @@ -84,17 +82,18 @@ (use-package dashboard :ensure t - :init + :config (setq dashboard-banner-logo-title "Welcome to Emacs Dashboard") + (setq dashboard-footer-messages '("I showed you my source code, plz respond.")) (setq dashboard-center-content nil) (setq dashboard-items '((recents . 5) (bookmarks . 5) (projects . 5))) (setq dashboard-set-navigator t) - :config - (dashboard-setup-startup-hook)) - -(setq dashboard-footer-messages '("I showed you my source code, plz respond.")) + (if (< (length command-line-args) 2) + (setq initial-buffer-choice (lambda () + (get-buffer-create "*dashboard*") + (dashboard-refresh-buffer))))) (use-package direnv :ensure t |