adding empv configs
This commit is contained in:
parent
e6e8270f3e
commit
44df17f8f4
2 changed files with 200 additions and 12 deletions
64
init.el
64
init.el
|
@ -258,6 +258,7 @@
|
|||
"m" '(:ignore t :which-key "music")
|
||||
"l" '(:ignore t :which-key "lsp")
|
||||
"x" '(:ignore t :which-key "guix")
|
||||
"v" '(:ignore t :which-key "mpv")
|
||||
"xx" '(guix :which-key "guix")
|
||||
"sp" '(:ignore t :which-key "passwords")
|
||||
"bs" '(consult-buffer :which-key "buffer search")
|
||||
|
@ -445,7 +446,9 @@
|
|||
(toggle-truncate-lines +1)
|
||||
(evil-normal-state)
|
||||
(setq visual-fill-column-width 120
|
||||
visual-fill-column-center-text t))
|
||||
visual-fill-column-center-text t)
|
||||
(if (string= org-agenda-this-buffer-name "*Org Agenda(fa:area+LEVEL=1)*")
|
||||
(org-agenda-columns)))
|
||||
|
||||
(defun chris/org-mpv (&optional url)
|
||||
(interactive)
|
||||
|
@ -582,6 +585,17 @@ much faster. The hope is to also make this a faster version of imenu."
|
|||
("@mean" . org-columns--summary-mean-age)
|
||||
("@min" . org-columns--summary-min-age)
|
||||
("est+" . org-columns--summary-estimate)))
|
||||
|
||||
(setq org-agenda-custom-commands
|
||||
'(("w" todo "WAIT")
|
||||
("fa" tags "area+LEVEL=1")
|
||||
("fr" tags "resource+LEVEL=1")
|
||||
("fp" tags "project+LEVEL=1")
|
||||
("fA" tags "archive+LEVEL=1")
|
||||
("ha" tags "abbie")
|
||||
("hl" tags "luke")
|
||||
("hy" tags "ty")
|
||||
("hj" tags "josiah")))
|
||||
|
||||
(defun chris/org-columns-view ()
|
||||
"Turn on org-columns overlay and turn off olivetti-mode"
|
||||
|
@ -623,8 +637,7 @@ much faster. The hope is to also make this a faster version of imenu."
|
|||
"c" 'org-capture
|
||||
"rr" 'org-refile
|
||||
"E" 'org-export-dispatch
|
||||
"oa" 'org-agenda-list
|
||||
"os" 'org-agenda
|
||||
"oa" 'org-agenda
|
||||
"gt" 'org-babel-tangle
|
||||
"td" 'org-toggle-link-display
|
||||
"il" 'org-insert-link
|
||||
|
@ -747,15 +760,15 @@ much faster. The hope is to also make this a faster version of imenu."
|
|||
org-roam-capture-templates
|
||||
'(("d" "default" entry "\n* %?"
|
||||
:if-new (file+head "${slug}.org"
|
||||
"#+TITLE: ${title}\n#+AUTHOR: Chris Cochrun\n#+CREATED: %<%D - %I:%M %p>\n\n%a")
|
||||
"#+TITLE: ${title}\n#+AUTHOR: Chris Cochrun\n#+CREATED: %<%D - %I:%M %p>\n#+CATEGORY: todo\n\n%a")
|
||||
:unnarrowed t)
|
||||
("b" "bible" entry "\n* %?"
|
||||
:if-new (file+head "${slug}.org"
|
||||
"#+TITLE: ${title}\n#+AUTHOR: Chris Cochrun\n#+CREATED: %<%D - %I:%M %p>\n- tags :biblestudy:%^G\n\n")
|
||||
"#+TITLE: ${title}\n#+AUTHOR: Chris Cochrun\n#+CREATED: %<%D - %I:%M %p>\n#+CATEGORY: bible\n- tags :biblestudy:%^G\n\n")
|
||||
:unnarrowed t)
|
||||
("l" "TFC Lesson" plain (file ".templates/lessontemplate.org")
|
||||
:if-new (file+head "lessons/${slug}.org"
|
||||
"#+TITLE: ${title}\n#+AUTHOR: Chris Cochrun\n#+CREATED: %<%D - %I:%M %p>\n")
|
||||
"#+TITLE: ${title}\n#+AUTHOR: Chris Cochrun\n#+CREATED: %<%D - %I:%M %p>\n#+CATEGORY: lesson\n")
|
||||
:unnarrowed t))
|
||||
org-roam-dailies-capture-templates
|
||||
'(("d" "daily" plain "%?"
|
||||
|
@ -1925,6 +1938,10 @@ targets."
|
|||
(display-buffer-in-side-window)
|
||||
(side . right)
|
||||
(window-width . 0.4))
|
||||
("\\*Agenda Commands\\*"
|
||||
(display-buffer-in-side-window)
|
||||
(side . bottom)
|
||||
(window-height . 0.30))
|
||||
("\\*elfeed-entry\\*"
|
||||
(display-buffer-in-side-window)
|
||||
(side . bottom)
|
||||
|
@ -1959,6 +1976,10 @@ targets."
|
|||
(display-buffer-in-side-window)
|
||||
(side . bottom)
|
||||
(window-height . 0.25))
|
||||
("\\*Agenda Commands\\*"
|
||||
(display-buffer-in-side-window)
|
||||
(side . bottom)
|
||||
(window-height . 0.30))
|
||||
("*gud-presenter*"
|
||||
(display-buffer-in-side-window)
|
||||
(side . bottom)
|
||||
|
@ -2853,6 +2874,37 @@ targets."
|
|||
|
||||
(add-hook 'nov-mode-hook 'chris/setup-nov-mode))
|
||||
|
||||
(use-package empv
|
||||
:config
|
||||
(setq empv-invidious-instance "https://vid.puffyan.us/api/v1"
|
||||
empv-video-file-extensions '("mkv" "mp4" "avi" "mov" "webm")
|
||||
empv-mpv-args '("--no-terminal" "--idle" "--input-ipc-server=/tmp/empv-socket"))
|
||||
(empv-embark-initialize-extra-actions)
|
||||
(general-auto-unbind-keys)
|
||||
(add-hook 'empv-resultes-mode-hook #'evil-normal-state)
|
||||
|
||||
(defun chris/empv-yt-dlp ()
|
||||
"Download the current video and and play it"
|
||||
(interactive)
|
||||
(async-shell-command (concat "yt-dlp" " \"" (empv-youtube-results--current-video-url) "\"")))
|
||||
|
||||
:general
|
||||
(chris/leader-keys
|
||||
:states 'normal
|
||||
:keymaps 'override
|
||||
"vo" 'empv-play-or-enqueue
|
||||
"vt" 'empv-toggle
|
||||
"vv" 'empv-play-video
|
||||
"vx" 'empv-chapter-select
|
||||
"vy" 'empv-youtube-tabulated)
|
||||
(general-def
|
||||
:states 'normal
|
||||
:keymaps 'empv-youtube-results-mode-map
|
||||
"q" 'quit-window
|
||||
"RET" 'empv-youtube-results-play-or-enqueue-current
|
||||
"i" 'empv-youtube-results-inspect
|
||||
"d" 'chris/empv-yt-dlp))
|
||||
|
||||
(use-package elfeed
|
||||
:commands (elfeed)
|
||||
:config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue