defunkt / gist.el

Yet another Emacs paste mode, this one for Gist.
550 stars 90 forks source link

Remove ‘require dired’ usage #110

Open matthewbauer opened 6 years ago

matthewbauer commented 6 years ago

Gist is causing a slow down in my configuration. It looks like it is from requiring dired. Hopefully this is an okay solution?

Instead to get the ‘@’ key in dired-mode to work, you must now enable the new ‘gist-dired-mode’. To use just do add a hook in dired-mode like this:

(add-hook 'dired-mode-hook 'gist-dired-mode)

This is possible to setup through use-package:

(use-package gist
  :ensure nil
  :commands gist-mode
  :hook (dired-mode . gist-dired-mode))