Make emacs the default image viewer

This commit is contained in:
BirDt_ 2025-09-24 19:10:55 +08:00
parent e34d6dd120
commit 044360e2b7
3 changed files with 31 additions and 0 deletions

View file

@ -47,6 +47,9 @@ If using =bspwm= and =sxhkd=, I suggest the following keyinds to make use of eve
#+end_src
** Open Images Automatically With Emacsclient
To automatically open images with ~emacsclient~ (useful, for example, to open them as a new buffer from Gomuks with ~/open~), copy ~emacs-open~ to ~/usr/bin/~ and make it executable. Then replace ~emacsclient.desktop~ with the one in this repository. Finally, run ~xdg-mime default emacsclient.desktop $(grep '^image/*' /usr/share/mime/types)~ to update emacsclient to be the default mimetype handler.
* Opinionated Stuff
This is a list of files/flows that are very opinionated and you may wish to delete from the configuration, or heavily modify.