Minor emacs config tweaks

This commit is contained in:
Ian Keane 2023-11-28 12:11:35 -05:00
parent fe79aaabf4
commit 257026682c

View file

@ -1,5 +1,5 @@
#+title Ian's Emacs Config #+title Ian's Emacs Config
#+PROPERTY: header-args:emacs-lisp :tangle (if eq system-type 'darwin "~/dotfiles/guix/init.el" "~/.config/emacs/init.el") #+PROPERTY: header-args:emacs-lisp :tangle (if (eq system-type 'darwin) "~/dotfiles/guix/init.el" "~/.config/emacs/init.el")
* First things first * First things first
** Literate Config Setup ** Literate Config Setup
@ -263,7 +263,8 @@ To get started, run =C-c C-v t=
#+end_src #+end_src
** Windows and Workspaces ** Windows and Workspaces
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package perspective) (use-package persp-mode
:diminish persp-mode)
(unless (equal persp-mode t) (unless (equal persp-mode t)
(persp-mode)) (persp-mode))
(use-package ace-window) (use-package ace-window)
@ -507,9 +508,9 @@ To get started, run =C-c C-v t=
"ms" '(empv-display-current :which-key "show currently playing") "ms" '(empv-display-current :which-key "show currently playing")
"mr" '(:ignore t :which-key "radio") "mr" '(:ignore t :which-key "radio")
"mrr" '(empv-play-radio) "mrr" '(empv-play-radio :which-key "play")
"mrR" '(empv-play-random-channel) "mrR" '(empv-play-random-channel :which-key "play random")
"mrl" '(empv-log-current-radio-song-name) "mrl" '(empv-log-current-radio-song-name :which-key "log song name")
"mp" '(:ignore t :which-key "playlist") "mp" '(:ignore t :which-key "playlist")
"mpP" '(empv-playlist :which-key "playlist") "mpP" '(empv-playlist :which-key "playlist")
@ -547,7 +548,7 @@ To get started, run =C-c C-v t=
"ol" '(org-store-link :which-key "Org store link") "ol" '(org-store-link :which-key "Org store link")
"oc" '(org-capture :which-key "Org Capture") "oc" '(org-capture :which-key "Org Capture")
"oC" '(org-capture-goto-target :which-key "Goto Capture") "oC" '(org-capture-goto-target :which-key "Goto Capture")
"ot" '(org-babel-tangle-file :which-key "Org Tangle") "ot" '(org-babel-tangle :which-key "Org Tangle")
"oy" '(+org/export-to-clipboard :which-key "Org export to clipboard") "oy" '(+org/export-to-clipboard :which-key "Org export to clipboard")
"oY" '(+org/export-to-clipboard-as-rich-text :which-key "Org export to clipboard (rich)") "oY" '(+org/export-to-clipboard-as-rich-text :which-key "Org export to clipboard (rich)")
"oe" '(:ignore t :which-key "export") "oe" '(:ignore t :which-key "export")
@ -719,7 +720,7 @@ Idk I think this came from the vertico readme
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package embark (use-package embark
:ensure t :ensure t
:diminish eldoc-mode
:bind :bind
(("C-." . embark-act) ;; pick some comfortable binding (("C-." . embark-act) ;; pick some comfortable binding
("C-;" . embark-dwim) ;; good alternative: M-. ("C-;" . embark-dwim) ;; good alternative: M-.
@ -745,7 +746,8 @@ Idk I think this came from the vertico readme
#+end_src #+end_src
** Snippets ** Snippets
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package yasnippet) (use-package yasnippet
:diminish yas-minor-mode)
(use-package yasnippet-snippets (use-package yasnippet-snippets
:after lsp-mode) :after lsp-mode)
(yas-global-mode) (yas-global-mode)
@ -766,6 +768,7 @@ Idk I think this came from the vertico readme
(use-package lsp-treemacs) (use-package lsp-treemacs)
(use-package flycheck (use-package flycheck
:ensure t :ensure t
:diminish
:init (global-flycheck-mode)) :init (global-flycheck-mode))
#+end_src #+end_src
** Rust ** Rust
@ -815,7 +818,8 @@ Uses the external fish program to provide fish-style completions to eshell etc
#+end_src #+end_src
* Git * Git
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package git-gutter+) (use-package git-gutter+
:diminish)
(global-git-gutter+-mode t) (global-git-gutter+-mode t)
(use-package magit) (use-package magit)
(use-package magit-todos) (use-package magit-todos)
@ -934,12 +938,12 @@ Uses the external fish program to provide fish-style completions to eshell etc
(use-package evil-collection (use-package evil-collection
:after evil :after evil
:ensure t :ensure t
:diminish evil-collection-unimpaired-mode
:config :config
(evil-collection-init)) (evil-collection-init)
(setq evil-want-C-u-scroll t) (setq evil-want-C-i-jump t
(setq evil-want-C-i-jump nil) evil-respect-visual-line-mode t))
(setq evil-respect-visual-line-mode t)
#+end_src #+end_src
* Web browsing and youtube * Web browsing and youtube
#+begin_src emacs-lisp #+begin_src emacs-lisp