-
-
Save tshatrov/02e14ce32618f98705303812c2d427b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun view-file-slime (file &key (bufname "*image-viewer*")) | |
"Requires setting `slime-enable-evaluate-in-emacs' to T in Emacs" | |
(let ((ns (namestring file))) | |
(swank::eval-in-emacs `(slime-with-popup-buffer (,bufname :connection t :package t) | |
(insert-image (create-image ,ns)) | |
(image-mode) | |
(setf buffer-file-name ,ns) | |
(not-modified) | |
(image-toggle-display-image) | |
)))) |
Author
tshatrov
commented
Apr 25, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment