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

925 B

code-compass?

  (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)

Youtube-dl

  (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))))