|
From: | Michael Heerdegen |
Subject: | Re: Easy/Possible to globally change prompt strings of messages? e.g. changing find-file's prompt string from "Find file:" to "open file:" ? |
Date: | Fri, 30 Jan 2015 09:42:18 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Christian Seberino <cseberino@gmail.com> writes: > Perhaps it would be feasible/easier to somehow add all those wonderful > features (TAB completion and abbreviations) > to my own wrapper functions? How hard is *that* by comparision? Actually it is not hard, at least for this specific case and in Emacs >= 24 (didn't check older Emacsen): --8<---------------cut here---------------start------------->8--- (defun my-find-file-around-ad (origfun &rest args) (interactive (find-file-read-args "Open file: " (confirm-nonexistent-file-or-buffer))) (apply origfun args)) (advice-add 'find-file :around #'my-find-file-around-ad) --8<---------------cut here---------------end--------------->8--- But I think in the long term it's better to get used to the Emacs nomenclature. Michael.
[Prev in Thread] | Current Thread | [Next in Thread] |