Change dashboard and vterm for work laptop

This commit is contained in:
Howard Abrams 2025-08-04 09:06:57 -07:00
parent 4d0c20712e
commit 2731861d46
3 changed files with 14 additions and 7 deletions

View file

@ -144,6 +144,14 @@ The [[https://github.com/emacs-dashboard/emacs-dashboard][emacs-dashboard]] proj
(rx " (" (zero-or-more any) eol) "" (emacs-version))))
(string-replace "\n" "" smaller-version)))
(setq dashboard-startup-banner
(if (ha-emacs-for-work?)
"~/src/hamacs/support/teal-sticker.png"
;; Choose a random image from my collection of startup images:
(thread-first "~/src/hamacs/support/dashboard"
(directory-files t (rx ".png"))
(seq-random-elt))))
(setq dashboard-banner-logo-title
(format "Emacs %s — %s"
(if (and (fboundp 'native-comp-available-p)
@ -151,10 +159,6 @@ The [[https://github.com/emacs-dashboard/emacs-dashboard][emacs-dashboard]] proj
"with Native Compilation" "")
(ha-dashboard-version))
;; Choose a random image from my collection of startup images:
dashboard-startup-banner (thread-first "~/src/hamacs/support/dashboard"
(directory-files t (rx ".png"))
(seq-random-elt))
dashboard-center-content t
dashboard-set-init-info t
dashboard-projects-switch-function 'project-switch-project

View file

@ -101,7 +101,7 @@ Instead of memorizing all the Emacs-specific keybindings, we use [[https://githu
(">" python-indent-shift-left "Shift Left")
("<" python-indent-shift-right "Shift Right"))
"Navigate/Eval"
(("e" python-evaluate/body "Evaluate...")
(("e" python-evaluate/body "Eval...")
("g" python-goto/body "Go to..."))
"Docs"
(("d" python-eldoc-at-point "Docs on Symbol")

View file

@ -121,9 +121,12 @@ I'm not giving up on Eshell, but I am playing around with [[https://github.com/a
VTerm has an issue (at least for me) with ~M-Backspace~ not deleting the previous word, and yeah, I want to make sure that both keystrokes do the same thing.
#+begin_src emacs-lisp :tangle no
#+begin_src emacs-lisp
(use-package vterm
:config
(setq vterm-shell "zsh"
vterm-kill-buffer-on-exit t)
(ha-leader
"p t" '("terminal" . (lambda () (interactive) (ha-shell (project-root (project-current))))))
@ -154,7 +157,7 @@ The advantage of running terminals in Emacs is the ability to copy text without
** Eat
While not as fast as [[https://github.com/akermu/emacs-libvterm][vterm]], the [[https://codeberg.org/akib/emacs-eat][Emulate a Terminal]] project (eat) is fast enough, and doesnt require a dedicate library that requires re-compilation. While offering [[https://elpa.nongnu.org/nongnu-devel/doc/eat.html][online documentation]], Im glad for an [[info:eat#Top][Info version]].
#+BEGIN_SRC emacs-lisp
#+BEGIN_SRC emacs-lisp :tangle no
(use-package eat
:straight (:host codeberg :repo "akib/emacs-eat"
:files ("*.el" ("term" "term/*.el") "*.texi"