aboutsummaryrefslogtreecommitdiff
path: root/bard-emacs-modules
diff options
context:
space:
mode:
authorDaniel <[email protected]>2024-03-20 17:31:18 -0400
committerDaniel <[email protected]>2024-03-20 17:31:18 -0400
commit0223d899c456049d42e1ff0ba1bc1818a26b6696 (patch)
treeeeb94bc6898452b77786f5a9a34c4d266e439807 /bard-emacs-modules
parentc949abf83be8cc5f796b6559c5fc251b58e92ea2 (diff)
nu dashboard
Diffstat (limited to 'bard-emacs-modules')
-rw-r--r--bard-emacs-modules/bard-emacs-dashboard.el32
-rw-r--r--bard-emacs-modules/bard-emacs-package.el18
-rw-r--r--bard-emacs-modules/bard-emacs-web.el1
3 files changed, 34 insertions, 17 deletions
diff --git a/bard-emacs-modules/bard-emacs-dashboard.el b/bard-emacs-modules/bard-emacs-dashboard.el
new file mode 100644
index 0000000..87f9044
--- /dev/null
+++ b/bard-emacs-modules/bard-emacs-dashboard.el
@@ -0,0 +1,32 @@
+(require 'bard-dashboard)
+
+(use-package dashboard
+ :ensure t
+ :config
+ (define-key global-map (kbd "<home>") #'dashboard-open)
+ (define-key global-map (kbd "C-z d") #'dashboard-open)
+ (setq initial-buffer-choice 'dashboard-open)
+ (dashboard-setup-startup-hook)
+ (setq dashboard-startup-banner "~/.emacs.d/img/emacslogo.png")
+ (setq dashboard-banner-logo-width 50)
+ (setq dashboard-banner-logo-height 50)
+ (setq dashboard-center-content t)
+ ;; dashboar items
+ (setq dashboard-items '((recents . 5)
+ (agenda . 5)))
+
+ ;; Insert custom item
+ (add-to-list 'dashboard-item-generators '(custom . dashboard-insert-custom))
+ (add-to-list 'dashboard-items '(custom) t)
+
+ (setq dashboard-banner-logo-title "Time for another recreational programming session.")
+ (setq dashboard-startupify-list '(dashboard-insert-banner
+ dashboard-insert-newline
+ dashboard-insert-banner-title
+ dashboard-insert-newline
+ dashboard-insert-items
+ dashboard-insert-newline))
+
+ (setq dashboard-set-init-info nil))
+
+(provide 'bard-emacs-dashboard)
diff --git a/bard-emacs-modules/bard-emacs-package.el b/bard-emacs-modules/bard-emacs-package.el
index 276e30a..bc856ae 100644
--- a/bard-emacs-modules/bard-emacs-package.el
+++ b/bard-emacs-modules/bard-emacs-package.el
@@ -58,8 +58,7 @@
(global-set-key (kbd "C-x b") #'consult-buffer)
(global-set-key (kbd "C-c s") #'consult-line)
(global-set-key (kbd "C-c C-s") nil)
- (global-set-key (kbd "C-z s") #'consult-ripgrep)
- (global-set-key (kbd "M-s M-o") #'consult-outline))
+ (global-set-key (kbd "C-z s") #'consult-ripgrep))
(use-package yasnippet
:init
@@ -99,21 +98,6 @@
(completion-styles '(orderless basic))
(completion-category-overrides '((file (styles basic partial-completion)))))
-(use-package dashboard
- :ensure t
- :config
- (setq initial-buffer-choice 'dashboard-open)
- (dashboard-setup-startup-hook)
- (setq dashboard-startup-banner "~/.emacs.d/img/emacslogo.png")
- (setq dashboard-banner-logo-width 50)
- (setq dashboard-banner-logo-height 50)
- (setq dashboard-center-content t)
- (setq dashboard-items '((recents . 5)
- (agenda . 5)))
- (setq dashboard-banner-logo-title "Time for another recreational programming session")
- (setq dashboard-set-footer nil)
- (setq dashboard-set-init-info nil))
-
(use-package elfeed
:ensure t
:config
diff --git a/bard-emacs-modules/bard-emacs-web.el b/bard-emacs-modules/bard-emacs-web.el
index 5547081..3af9c43 100644
--- a/bard-emacs-modules/bard-emacs-web.el
+++ b/bard-emacs-modules/bard-emacs-web.el
@@ -20,6 +20,7 @@
;; librewolf open browser
+;; TODO fix this to work with librewolf-bin on Gentoo
(defun browse-url-librewolf (url &optional new-window)
"Ask the Librewolf WWW browser to load URL.
Defaults to the URL around or before point. Passes the strings