emacs-config/config-submodules.org

867 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")

Youtube-dl

  (when (executable-find "youtube-dl")
    (add-to-list 'load-path "~/.emacs.d/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))))