minibuffer

How can I prevent the mini-buffer from displaying previous commands in Emacs?

北慕城南 提交于 2020-01-13 08:38:06
问题 I am not even sure this is a previous command or a non-finished command or whatever, but I do know I really don't like it. My problem is that some commands (or messages, or whatever) get stuck in the mini-buffer so that when I type a new command it appears there really quickly, and then the mini-buffer is back to the stubborn command. Some commands seem to be chosen, and after using lots of commands something else gets stuck there, but there is always something being shown that I don't want

Emacs: Disable line truncation in minibuffer only

天涯浪子 提交于 2020-01-01 06:27:06
问题 I am using ido mode for file & buffer switching in Emacs 23. The following options allow the minibuffer to be resized if there is more than one line worth of files in the directory: (setq resize-mini-windows t) ; grow and shrink as necessary (setq max-mini-window-height 3) ; grow up to max of 3 lines However, this only works if line truncation is not enabled by default (globally): (setq-default truncate-lines t) ; Truncate, do not wrap lines I like this option for my main editing window, but

Emacs: Disable line truncation in minibuffer only

佐手、 提交于 2020-01-01 06:26:12
问题 I am using ido mode for file & buffer switching in Emacs 23. The following options allow the minibuffer to be resized if there is more than one line worth of files in the directory: (setq resize-mini-windows t) ; grow and shrink as necessary (setq max-mini-window-height 3) ; grow up to max of 3 lines However, this only works if line truncation is not enabled by default (globally): (setq-default truncate-lines t) ; Truncate, do not wrap lines I like this option for my main editing window, but

Emacs text gets stuck in minibuffer

佐手、 提交于 2019-12-14 01:14:49
问题 I am using GNU Emacs 24.4.1 (edit: also seen with 24.5.1). Some old output from vc-mode (I think) is appearing in the minibuffer: Auto-merging foo/bar I am not doing any version control operations at the moment, but this text is stuck in the minibuffer. Pressing C-g replaces it briefly with Quit, but it comes back with the next keystroke. What it isn't: it's not a recursive edit. C-] or abort-recursive-edit gives the error No recursive edit is in progress and the awkward text in the

Inserting Text into an Active Minibuffer

人走茶凉 提交于 2019-12-13 01:06:43
问题 I'm trying to insert text into the mini buffer after running an external command. E.G (call-interactively 'eval-expression) (insert "blah") The problem of course is that eval-expression doesn't return before the user has entered input. My end goal is to add some default editable text into the mini buffer prompt of an arbitrary command (i.e a 'default string' or template). How can I go about accomplishing this? 回答1: Use minibuffer-setup-hook : (defun foo () (insert "ABCDE")) (add-hook

Emacs: Keybinding to TAB breaks autocompletion in minibuffer

风流意气都作罢 提交于 2019-12-12 15:28:22
问题 Simply put, I just set a keybinding on the TAB key, but now when I push TAB in the minibuffer to auto-complete a command, it fails with the following message: The mark is not set now, so there is no region . In other words, I only need my TAB keybinding when my cursor is in the buffer (not the minibuffer). In my example below, how can I set my tab to indent when I am in text/fundamental mode in the buffer without losing autocompletion while in the mini-buffer? I have the following functions

Altering the font size for the Emacs minibuffer separately from default emacs?

徘徊边缘 提交于 2019-12-10 04:15:13
问题 I've been attempting to alter the font / face for the emacs minibuffer separately from emacs default fonts, but without much luck. Specifically, I'm interested in making the minibuffer font size larger for use with the emacs MULE as, with my current font setting or if I'm using emacs on a "netbook" screen, sometimes the character selection options in the MULE are a bit small. Options easily accessed within emacs are the minibuffer-prompt & minibuffer-prompt-properties, but these are only for

In Emacs, how do I display a message in the minibuffer with font face properties?

寵の児 提交于 2019-12-09 08:26:53
问题 I want to display a colored string of text in the minibuffer, but when I use the 'message' function, the text-properties of are stripped. 回答1: Works for me: (message "%s" (propertize "foo" 'face '(:foreground "red"))) You probably had (message (propertize ...)) , which interprets the propertized string as a format control string, hence stripped of its properties. 来源: https://stackoverflow.com/questions/2742435/in-emacs-how-do-i-display-a-message-in-the-minibuffer-with-font-face-properties

How to have a different buffer list for each tabs in Vim?

自古美人都是妖i 提交于 2019-12-09 06:52:29
问题 Is it possible to kind of "attach" a list of buffers to particular tabs within Vim? I am currently using MiniBufferExplorer, which shows all buffers in nice tabs. It can be combined using standard vim tabs but the plugin's buffer list contains all the buffers and using tabs become a bit useless. Here's an example of what I'd like: Tab A contains a buffer list of: FileA FileB FileC Tab B contains a buffer list of: FileD FileE FileF Currently what I have is this: Tab A contains a buffer list of

How can I prevent the mini-buffer from displaying previous commands in Emacs?

旧城冷巷雨未停 提交于 2019-12-05 05:02:01
I am not even sure this is a previous command or a non-finished command or whatever, but I do know I really don't like it. My problem is that some commands (or messages, or whatever) get stuck in the mini-buffer so that when I type a new command it appears there really quickly, and then the mini-buffer is back to the stubborn command. Some commands seem to be chosen, and after using lots of commands something else gets stuck there, but there is always something being shown that I don't want to see. I tried typing C-g lots of times to see if it would quit, but that does not work. This is a