emacs-config/config-submodules.org
2023-03-17 16:33:04 -05:00

24 lines
925 B
Org Mode

* code-compass?
#+begin_src emacs-lisp
(add-to-list 'load-path
(expand-file-name "submodule/code-compass"
user-emacs-directory))
(use-package simple-httpd)
(require 'code-compass)
(setq c/preferred-browser "firefox")
(remove-hook 'prog-mode-hook 'c/display-contributors-delayed)
#+end_src
* Youtube-dl
#+BEGIN_SRC emacs-lisp
(when (executable-find "youtube-dl")
(add-to-list 'load-path (ef "submodule/youtube-dl-emacs/"))
(require 'youtube-dl)
(defun youtube-dl-song (url)
(interactive
(list (read-from-minibuffer
"URL: " (or (thing-at-point 'url)
(when interprogram-paste-function
(funcall interprogram-paste-function))))))
(async-shell-command (format "youtube-dl -x -f \"bestaudio[ext=m4a]\" \"%s\"; tageditor -s album=\"youtube-dl\" -f *.m4a" url))))
#+END_SRC