vterm eshell autosuggest and display line numbers changes
This commit is contained in:
		
							parent
							
								
									deb7a7836a
								
							
						
					
					
						commit
						da84ac967c
					
				
					 3 changed files with 19 additions and 9 deletions
				
			
		
							
								
								
									
										13
									
								
								README.org
									
										
									
									
									
								
							
							
						
						
									
										13
									
								
								README.org
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -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.
 | 
			
		||||
#+begin_src emacs-lisp
 | 
			
		||||
(setq display-line-numbers-type 'relative)
 | 
			
		||||
(setq display-line-numbers-type t)
 | 
			
		||||
(global-display-line-numbers-mode +1)
 | 
			
		||||
(add-hook 'prog-mode-hook (display-line-numbers-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")
 | 
			
		||||
    "sd" '(dictionary-search :which-key "search the dictionary")
 | 
			
		||||
    "oP" '(proced :which-key "proced")
 | 
			
		||||
    "ov" '(vterm :which-key "vterm")
 | 
			
		||||
    "wo" '(other-window :which-key "other window")
 | 
			
		||||
    "wd" '(delete-window :which-key "other window")
 | 
			
		||||
    "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
 | 
			
		||||
*** Esh-autosuggest
 | 
			
		||||
#+begin_src emacs-lisp
 | 
			
		||||
(use-package esh-autosuggest
 | 
			
		||||
  :hook (eshell-mode . esh-autosuggest-mode)
 | 
			
		||||
  :ensure t)
 | 
			
		||||
;; (use-package esh-autosuggest
 | 
			
		||||
;;   ;; :hook (eshell-mode . esh-autosuggest-mode)
 | 
			
		||||
;;   :ensure nil)
 | 
			
		||||
#+end_src
 | 
			
		||||
 | 
			
		||||
** Vterm
 | 
			
		||||
#+begin_src emacs-lisp
 | 
			
		||||
(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
 | 
			
		||||
 | 
			
		||||
** Sly
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										13
									
								
								init.el
									
										
									
									
									
								
							
							
						
						
									
										13
									
								
								init.el
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -52,7 +52,7 @@
 | 
			
		|||
                  (tool-bar-mode -1)))
 | 
			
		||||
              (chris/set-font-faces)))
 | 
			
		||||
 | 
			
		||||
(setq display-line-numbers-type 'relative)
 | 
			
		||||
(setq display-line-numbers-type t)
 | 
			
		||||
(global-display-line-numbers-mode +1)
 | 
			
		||||
(add-hook 'prog-mode-hook (display-line-numbers-mode +1))
 | 
			
		||||
(global-visual-line-mode +1)
 | 
			
		||||
| 
						 | 
				
			
			@ -243,6 +243,7 @@
 | 
			
		|||
    "sr" '(consult-ripgrep :which-key "consult ripgrep")
 | 
			
		||||
    "sd" '(dictionary-search :which-key "search the dictionary")
 | 
			
		||||
    "oP" '(proced :which-key "proced")
 | 
			
		||||
    "ov" '(vterm :which-key "vterm")
 | 
			
		||||
    "wo" '(other-window :which-key "other window")
 | 
			
		||||
    "wd" '(delete-window :which-key "other window")
 | 
			
		||||
    "wv" '(evil-window-vsplit :which-key "split window vertically")
 | 
			
		||||
| 
						 | 
				
			
			@ -2097,11 +2098,15 @@ targets."
 | 
			
		|||
  (general-def '(normal insert) eshell-mode-map
 | 
			
		||||
    "C-d" 'kill-buffer-and-window))
 | 
			
		||||
 | 
			
		||||
(use-package esh-autosuggest
 | 
			
		||||
  :hook (eshell-mode . esh-autosuggest-mode)
 | 
			
		||||
  :ensure t)
 | 
			
		||||
;; (use-package esh-autosuggest
 | 
			
		||||
;;   ;; :hook (eshell-mode . esh-autosuggest-mode)
 | 
			
		||||
;;   :ensure nil)
 | 
			
		||||
 | 
			
		||||
(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
 | 
			
		||||
  :mode
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								recentf
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								recentf
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -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)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue