vterm eshell autosuggest and display line numbers changes

This commit is contained in:
Chris Cochrun 2023-01-27 13:55:15 -06:00
parent deb7a7836a
commit da84ac967c
3 changed files with 19 additions and 9 deletions

View file

@ -135,7 +135,7 @@ In order to have this config work on both my desktop with regular joe-schmoe mon
Then let's make sure line-numbers are relative and on. And let's turn on visual-line-mode globally. Then let's make sure line-numbers are relative and on. And let's turn on visual-line-mode globally.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq display-line-numbers-type 'relative) (setq display-line-numbers-type t)
(global-display-line-numbers-mode +1) (global-display-line-numbers-mode +1)
(add-hook 'prog-mode-hook (display-line-numbers-mode +1)) (add-hook 'prog-mode-hook (display-line-numbers-mode +1))
(global-visual-line-mode +1) (global-visual-line-mode +1)
@ -501,6 +501,7 @@ This evil-collection package includes a lot of other evil based things.
"sr" '(consult-ripgrep :which-key "consult ripgrep") "sr" '(consult-ripgrep :which-key "consult ripgrep")
"sd" '(dictionary-search :which-key "search the dictionary") "sd" '(dictionary-search :which-key "search the dictionary")
"oP" '(proced :which-key "proced") "oP" '(proced :which-key "proced")
"ov" '(vterm :which-key "vterm")
"wo" '(other-window :which-key "other window") "wo" '(other-window :which-key "other window")
"wd" '(delete-window :which-key "other window") "wd" '(delete-window :which-key "other window")
"wv" '(evil-window-vsplit :which-key "split window vertically") "wv" '(evil-window-vsplit :which-key "split window vertically")
@ -2996,14 +2997,18 @@ Let's add our own eshell prompt. and set the password cache to a significantly h
#+end_src #+end_src
*** Esh-autosuggest *** Esh-autosuggest
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package esh-autosuggest ;; (use-package esh-autosuggest
:hook (eshell-mode . esh-autosuggest-mode) ;; ;; :hook (eshell-mode . esh-autosuggest-mode)
:ensure t) ;; :ensure nil)
#+end_src #+end_src
** Vterm ** Vterm
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq vterm-buffer-name-string "vterm %s") (setq vterm-buffer-name-string "vterm %s")
(defun chris/vterm-setup ()
"Setup vterm with my preferred settings"
(display-line-numbers-mode -1))
(add-hook 'vterm-mode-hook 'chris/vterm-setup)
#+end_src #+end_src
** Sly ** Sly

13
init.el
View file

@ -52,7 +52,7 @@
(tool-bar-mode -1))) (tool-bar-mode -1)))
(chris/set-font-faces))) (chris/set-font-faces)))
(setq display-line-numbers-type 'relative) (setq display-line-numbers-type t)
(global-display-line-numbers-mode +1) (global-display-line-numbers-mode +1)
(add-hook 'prog-mode-hook (display-line-numbers-mode +1)) (add-hook 'prog-mode-hook (display-line-numbers-mode +1))
(global-visual-line-mode +1) (global-visual-line-mode +1)
@ -243,6 +243,7 @@
"sr" '(consult-ripgrep :which-key "consult ripgrep") "sr" '(consult-ripgrep :which-key "consult ripgrep")
"sd" '(dictionary-search :which-key "search the dictionary") "sd" '(dictionary-search :which-key "search the dictionary")
"oP" '(proced :which-key "proced") "oP" '(proced :which-key "proced")
"ov" '(vterm :which-key "vterm")
"wo" '(other-window :which-key "other window") "wo" '(other-window :which-key "other window")
"wd" '(delete-window :which-key "other window") "wd" '(delete-window :which-key "other window")
"wv" '(evil-window-vsplit :which-key "split window vertically") "wv" '(evil-window-vsplit :which-key "split window vertically")
@ -2097,11 +2098,15 @@ targets."
(general-def '(normal insert) eshell-mode-map (general-def '(normal insert) eshell-mode-map
"C-d" 'kill-buffer-and-window)) "C-d" 'kill-buffer-and-window))
(use-package esh-autosuggest ;; (use-package esh-autosuggest
:hook (eshell-mode . esh-autosuggest-mode) ;; ;; :hook (eshell-mode . esh-autosuggest-mode)
:ensure t) ;; :ensure nil)
(setq vterm-buffer-name-string "vterm %s") (setq vterm-buffer-name-string "vterm %s")
(defun chris/vterm-setup ()
"Setup vterm with my preferred settings"
(display-line-numbers-mode -1))
(add-hook 'vterm-mode-hook 'chris/vterm-setup)
(use-package sly (use-package sly
:mode :mode

View file

@ -1,4 +1,4 @@
;;; Automatically generated by recentf on Fri Jan 13 09:12:04 2023. ;;; Automatically generated by recentf on Fri Jan 20 09:38:48 2023.
(setq recentf-list 'nil) (setq recentf-list 'nil)