diff --git a/.config/emacs/init.org b/.config/emacs/init.org index 96be568..968e71f 100644 --- a/.config/emacs/init.org +++ b/.config/emacs/init.org @@ -168,16 +168,24 @@ Use Dashboard.el. First load `all-the-icons` for nicer rendering ;; (straight-use-package 'all-the-icons) (straight-use-package 'dashboard) (dashboard-setup-startup-hook) -(setq dashboard-items '((recents . 8) - (bookmarks . 8))) +(setq dashboard-items '((recents . 6) + (projects . 5) + (bookmarks . 5))) (setq dashboard-startup-banner 'logo) (setq dashboard-center-content t) (setq dashboard-set-file-icons t) (setq dashboard-set-navigator t) (setq dashboard-set-heading-icons t) +(setq dashboard-projects-backend 'project-el) (add-hook 'dashboard-mode-hook (lambda () (setq-local line-spacing 12) (dashboard-jump-to-recents))) +(defun joe/launch-dashboard () + "Jump to the dashboard buffer, if doesn't exists create one." + (interactive) + (switch-to-buffer dashboard-buffer-name) + (dashboard-mode) + (dashboard-insert-startupify-lists)) #+end_src *** Olivetti @@ -277,8 +285,8 @@ Setup other stuff (straight-use-package 'doom-modeline) (doom-modeline-mode) (doom-modeline-def-modeline 'main - '(modals bar workspace-name bar window-number matches buffer-info remote-host buffer-position word-count selection-info) - '(parrot objed-state misc-info persp-name battery grip irc mu4e gnus github debug repl lsp bar input-method indent-info buffer-encoding bar major-mode process)) + '(modals bar window-number matches buffer-info remote-host buffer-position word-count selection-info) + '(parrot objed-state misc-info battery grip irc mu4e gnus github debug repl lsp bar input-method indent-info buffer-encoding bar major-mode process bar workspace-name)) ;; Set default mode-line (add-hook 'doom-modeline-mode-hook @@ -428,15 +436,6 @@ Emacs is an great operating system, if only it had a good text editor... (kbd "tc") 'tab-close (kbd "tr") 'tab-rename))) -(evil-define-key 'normal 'global (kbd "M-1") '(lambda () (interactive) (tab-bar-select-tab 1))) -(evil-define-key 'normal 'global (kbd "M-2") '(lambda () (interactive) (tab-bar-select-tab 2))) -(evil-define-key 'normal 'global (kbd "M-3") '(lambda () (interactive) (tab-bar-select-tab 3))) -(evil-define-key 'normal 'global (kbd "M-4") '(lambda () (interactive) (tab-bar-select-tab 4))) -(evil-define-key 'normal 'global (kbd "M-5") '(lambda () (interactive) (tab-bar-select-tab 5))) -(evil-define-key 'normal 'global (kbd "M-6") '(lambda () (interactive) (tab-bar-select-tab 6))) -(evil-define-key 'normal 'global (kbd "M-7") '(lambda () (interactive) (tab-bar-select-tab 7))) -(evil-define-key 'normal 'global (kbd "M-8") '(lambda () (interactive) (tab-bar-select-tab 8))) -(evil-define-key 'normal 'global (kbd "M-9") '(lambda () (interactive) (tab-bar-select-tab 9))) ;; (define-prefix-command 'evil-consult-map) ;; (define-key evil-consult-map "b" 'evil-window-bottom-right) ;; (define-key evil-consult-map "c" 'evil-window-delete) @@ -631,6 +630,21 @@ The theme of `C-x 4` bindings is that they operate on other windows, so this fun (global-set-key (kbd "C-S-v") #'joe/smooth-scroll-short-down) (global-set-key (kbd "M-S-v") #'joe/smooth-scroll-short-up) +#+end_src +** Tabs/Workspaces +#+begin_src emacs-lisp +(setq tab-bar-mode t) +(setq tab-bar-show nil) + +(evil-define-key 'normal 'global (kbd "M-1") '(lambda () (interactive) (tab-bar-select-tab 1))) +(evil-define-key 'normal 'global (kbd "M-2") '(lambda () (interactive) (tab-bar-select-tab 2))) +(evil-define-key 'normal 'global (kbd "M-3") '(lambda () (interactive) (tab-bar-select-tab 3))) +(evil-define-key 'normal 'global (kbd "M-4") '(lambda () (interactive) (tab-bar-select-tab 4))) +(evil-define-key 'normal 'global (kbd "M-5") '(lambda () (interactive) (tab-bar-select-tab 5))) +(evil-define-key 'normal 'global (kbd "M-6") '(lambda () (interactive) (tab-bar-select-tab 6))) +(evil-define-key 'normal 'global (kbd "M-7") '(lambda () (interactive) (tab-bar-select-tab 7))) +(evil-define-key 'normal 'global (kbd "M-8") '(lambda () (interactive) (tab-bar-select-tab 8))) +(evil-define-key 'normal 'global (kbd "M-9") '(lambda () (interactive) (tab-bar-select-tab 9))) #+end_src ** VEMCO