From 52978baab0274bc594c8fd3cc749624a475229e2 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Thu, 2 May 2024 23:25:48 -0700 Subject: a lot of stuff --- config/emacs.el | 11 ++++++++++- config/emacs.org | 13 ++++++++++++- config/index.org | 2 ++ 3 files changed, 24 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/emacs.el b/config/emacs.el index b5b3525..d4879e9 100644 --- a/config/emacs.el +++ b/config/emacs.el @@ -111,6 +111,13 @@ Otherwise, just insert the typed character." (define-key org-mode-map "[" 'electric-pair) (define-key org-mode-map "{" 'electric-pair))) +(use-package lyrics-fetcher + :after (emmsx) + :config + (setq lyrics-fetcher-genius-access-token + (password-store-get "genius_api")) + (lyrics-fetcher-use-backend 'genius)) + (add-hook 'after-init-hook 'global-company-mode) (org-babel-do-load-languages 'org-babel-load-languages @@ -156,6 +163,7 @@ Otherwise, just insert the typed character." (use-package page-break-lines :init (page-break-lines-mode)) +(evil-set-initial-state 'pdf-view-mode 'normal) (use-package org-journal :init @@ -270,7 +278,7 @@ Otherwise, just insert the typed character." "n r f" '(org-roam-node-find :wk "Find roam node") "n r i" '(org-roam-node-insert :wk "Insert roam node") "n r g" '(org-roam-graph :wk "Graph roam database") - "r s s" '(elfeed "rss feed") + "r s s" '(elfeed :wk "rss feed") "." '(counsel-find-file :wk "find file") "g /" '(magit-dispatch :wk "git commands") "g P" '(magit-push :wk "git push") @@ -295,6 +303,7 @@ Otherwise, just insert the typed character." "m P p" '(org-publish :wk "Publish website components") "s e" '(sudo-edit :wk "Edit file with sudo") "m m" '(emms :wk "Music player") + "m l" '(lyrics-fetcher-show-lyrics :wk "Music lyrics") "o p" '(treemacs :wk "Project Drawer") "f f" '(eglot-format :wk "Format code buffer") "i c" '(prestonpan :wk "Connect to my IRC server") diff --git a/config/emacs.org b/config/emacs.org index 7e94c3c..aea3280 100644 --- a/config/emacs.org +++ b/config/emacs.org @@ -141,6 +141,15 @@ what electric-pair does based on the mode. (define-key org-mode-map "[" 'electric-pair) (define-key org-mode-map "{" 'electric-pair))) #+end_src +* Lyrics +#+begin_src emacs-lisp + (use-package lyrics-fetcher + :after (emmsx) + :config + (setq lyrics-fetcher-genius-access-token + (password-store-get "genius_api")) + (lyrics-fetcher-use-backend 'genius)) +#+end_src * Completion Company-mode! We need this to do autocomplete stuff. #+begin_src emacs-lisp @@ -195,6 +204,7 @@ First, some small configurations and some evil-mode initilaization because I lik (use-package page-break-lines :init (page-break-lines-mode)) + (evil-set-initial-state 'pdf-view-mode 'normal) #+end_src ** Journal I use org-journal to journal about my life, and it's a part of my website: @@ -340,7 +350,7 @@ Ivy is a pretty cool general program for displaying stuff: "n r f" '(org-roam-node-find :wk "Find roam node") "n r i" '(org-roam-node-insert :wk "Insert roam node") "n r g" '(org-roam-graph :wk "Graph roam database") - "r s s" '(elfeed "rss feed") + "r s s" '(elfeed :wk "rss feed") "." '(counsel-find-file :wk "find file") "g /" '(magit-dispatch :wk "git commands") "g P" '(magit-push :wk "git push") @@ -365,6 +375,7 @@ Ivy is a pretty cool general program for displaying stuff: "m P p" '(org-publish :wk "Publish website components") "s e" '(sudo-edit :wk "Edit file with sudo") "m m" '(emms :wk "Music player") + "m l" '(lyrics-fetcher-show-lyrics :wk "Music lyrics") "o p" '(treemacs :wk "Project Drawer") "f f" '(eglot-format :wk "Format code buffer") "i c" '(prestonpan :wk "Connect to my IRC server") diff --git a/config/index.org b/config/index.org index 2e63109..5e15883 100644 --- a/config/index.org +++ b/config/index.org @@ -6,6 +6,8 @@ #+OPTIONS: broken-links:t * What is this magic? They're configurations for extremely obscure programs I use. Yeah, I know, I'm somewhat of a hipster myself. +Also, this is kind of outdated, because I use my [[https://github.com/ret2pop/hyprnixmacs][NixOS Configuration]] instead. Well, I still use the vanilla +(not doom) emacs configuration. ** Configurations Here is a list of my configurations for various programs: @@html: