# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1628620337 14400 # Node ID f6ba3ca3dbd4037e14896bbba7d519b487f387ff # Parent 98ea617c263afa503814ef4a773b5ed64e69a0b1 jordi-find-file-with-mode: still under warranty diff --git a/dotemacs.el b/dotemacs.el --- a/dotemacs.el +++ b/dotemacs.el @@ -96,7 +96,7 @@ "Calls `find-file' to open a file with the given MODE." (interactive (list (let ((default "fundamental-mode")) (intern (completing-read - (format-prompt "Mode" default) + "Mode: " obarray (lambda (sym) (string-match-p "-mode\\'" (symbol-name sym))) @@ -104,6 +104,7 @@ (cl-letf (((symbol-function 'set-auto-mode) (lambda (&rest _) (set-auto-mode-0 mode)))) (call-interactively 'find-file))) + (add-hook 'org-babel-after-execute-hook 'org-display-inline-images)