adding eglot symbols and some other tweaks

This commit is contained in:
Chris Cochrun 2023-01-27 13:55:56 -06:00
parent da84ac967c
commit 7fc4df5ade
2 changed files with 126 additions and 66 deletions

View file

@ -962,6 +962,7 @@ We also need to setup some capture templates to use some specific setups with my
:file-name "%<%Y-%m-%d>-bib"
:target (file+head "%<%Y-%m-%d>-bib.org" "#+TITLE: %<%Y-%m-%d> - Biblical\n#+AUTHOR: Chris Cochrun\n#+CREATED: %<%D - %I:%M %p>\n\n* Notes")
:unnarrowed t)))
(set-face-attribute 'magit-section-highlight nil :inherit 'variable-pitch)
(org-roam-setup)
:general
(chris/leader-keys
@ -1618,7 +1619,8 @@ Consult has a lot of nice functions like Ivy's Counsel functions (enhanced searc
"sf" 'consult-find
"sm" 'bookmark-jump
"sf" 'consult-flymake
"sy" 'consult-yank-from-kill-ring))
"sy" 'consult-yank-from-kill-ring
"sb" 'consult-eglot-symbols))
#+end_src
*** MARGINALIA
@ -1920,6 +1922,7 @@ I'm going to use projectile to keep my projects inline.
"op" 'projectile-switch-open-project
"gc" 'projectile-compile-project
"gr" 'projectile-run-project
"gd" 'projectile-run-gdb
"fp" 'project-find-file
"fP" 'project-switch-project))
#+end_src
@ -1965,6 +1968,7 @@ Ace link provides an avy like search for links. Upon using the keybindings prese
** Window Management
#+begin_src emacs-lisp
(setq display-buffer-alist
(if (string= system-name "syl")
'(("\\*e?shell\\*"
(display-buffer-in-side-window)
(side . bottom)
@ -1973,15 +1977,10 @@ Ace link provides an avy like search for links. Upon using the keybindings prese
(display-buffer-in-side-window)
(side . right)
(window-width . 0.4))
(if (string= system-name "syl")
("*compilation*"
(display-buffer-in-side-window)
(side . right)
(window-width . 0.4))
("*compilation*"
(display-buffer-in-side-window)
(side . bottom)
(window-height . 0.25)))
("*org-roam*"
(display-buffer-in-side-window)
(side . right)
@ -2000,6 +1999,39 @@ Ace link provides an avy like search for links. Upon using the keybindings prese
(window-height . 0.25))
("\\*Async Shell Command\\*"
(display-buffer-no-window))
)
'(("\\*e?shell\\*"
(display-buffer-in-side-window)
(side . bottom)
(window-height . 0.25))
("*helpful*"
(display-buffer-in-side-window)
(side . bottom)
(window-height . 0.25))
("*compilation*"
(display-buffer-in-side-window)
(side . bottom)
(window-height . 0.25))
("*org-roam*"
(display-buffer-in-side-window)
(side . right)
(window-width . 0.3))
("\\*elfeed-entry\\*"
(display-buffer-in-side-window)
(side . bottom)
(window-height . 0.70))
("*Agenda Commands*"
(display-buffer-in-side-window)
(side . right)
(window-width . 0.30))
("\\*Bongo-Elfeed Queue\\*"
(display-buffer-in-side-window)
(side . bottom)
(window-height . 0.25))
("\\*Async Shell Command\\*"
(display-buffer-no-window))
)
))
#+end_src
@ -2996,10 +3028,10 @@ Let's add our own eshell prompt. and set the password cache to a significantly h
"C-d" 'kill-buffer-and-window))
#+end_src
*** Esh-autosuggest
#+begin_src emacs-lisp
;; (use-package esh-autosuggest
;; ;; :hook (eshell-mode . esh-autosuggest-mode)
;; :ensure nil)
#+begin_src emacs-lisp :tangle no
(use-package esh-autosuggest
:hook (eshell-mode . esh-autosuggest-mode)
:ensure nil)
#+end_src
** Vterm

48
init.el
View file

@ -665,6 +665,7 @@
:file-name "%<%Y-%m-%d>-bib"
:target (file+head "%<%Y-%m-%d>-bib.org" "#+TITLE: %<%Y-%m-%d> - Biblical\n#+AUTHOR: Chris Cochrun\n#+CREATED: %<%D - %I:%M %p>\n\n* Notes")
:unnarrowed t)))
(set-face-attribute 'magit-section-highlight nil :inherit 'variable-pitch)
(org-roam-setup)
:general
(chris/leader-keys
@ -1079,7 +1080,8 @@ If on a:
"sf" 'consult-find
"sm" 'bookmark-jump
"sf" 'consult-flymake
"sy" 'consult-yank-from-kill-ring))
"sy" 'consult-yank-from-kill-ring
"sb" 'consult-eglot-symbols))
(use-package marginalia
:bind (:map minibuffer-local-map
@ -1319,6 +1321,7 @@ targets."
"op" 'projectile-switch-open-project
"gc" 'projectile-compile-project
"gr" 'projectile-run-project
"gd" 'projectile-run-gdb
"fp" 'project-find-file
"fP" 'project-switch-project))
@ -1345,6 +1348,7 @@ targets."
"gL" 'ace-link))
(setq display-buffer-alist
(if (string= system-name "syl")
'(("\\*e?shell\\*"
(display-buffer-in-side-window)
(side . bottom)
@ -1353,15 +1357,10 @@ targets."
(display-buffer-in-side-window)
(side . right)
(window-width . 0.4))
(if (string= system-name "syl")
("*compilation*"
(display-buffer-in-side-window)
(side . right)
(window-width . 0.4))
("*compilation*"
(display-buffer-in-side-window)
(side . bottom)
(window-height . 0.25)))
("*org-roam*"
(display-buffer-in-side-window)
(side . right)
@ -1380,6 +1379,39 @@ targets."
(window-height . 0.25))
("\\*Async Shell Command\\*"
(display-buffer-no-window))
)
'(("\\*e?shell\\*"
(display-buffer-in-side-window)
(side . bottom)
(window-height . 0.25))
("*helpful*"
(display-buffer-in-side-window)
(side . bottom)
(window-height . 0.25))
("*compilation*"
(display-buffer-in-side-window)
(side . bottom)
(window-height . 0.25))
("*org-roam*"
(display-buffer-in-side-window)
(side . right)
(window-width . 0.3))
("\\*elfeed-entry\\*"
(display-buffer-in-side-window)
(side . bottom)
(window-height . 0.70))
("*Agenda Commands*"
(display-buffer-in-side-window)
(side . right)
(window-width . 0.30))
("\\*Bongo-Elfeed Queue\\*"
(display-buffer-in-side-window)
(side . bottom)
(window-height . 0.25))
("\\*Async Shell Command\\*"
(display-buffer-no-window))
)
))
(defun chris/kill-buffer-frame ()
@ -2098,10 +2130,6 @@ 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 nil)
(setq vterm-buffer-name-string "vterm %s")
(defun chris/vterm-setup ()
"Setup vterm with my preferred settings"