Hot answers tagged

5

As far as I know, there is no such tool in Emacs or a 3rd-party library. But perhaps someone else will come up with one. You have correctly pointed to the two main sources of info I would have mentioned: (1) pop-up info in tooltips and (2) studying mode-line-format and its doc (doc string and Elisp manual, node Mode Line Top). A third source of info that ...


5

The help-echo property can be a function that returns the actual string to display, so you could add an additional overlay with higher priority with a special help-echo property which will compute the union/concatenation of all the help-echo properties it covers.


4

Since any tool will have to read mode-line-format, you cannot do better than examining it. The manual has an extensive section describing the format here including all the % constructs. Note that the mode-line-format is often recursive i.e. it contains variables which are themselves valid modeline formats so it is often useful to parse a part of it ...


3

To disable dialog windows set use-dialog-box to nil (setq use-dialog-box nil)


3

tl;dr: do M-x customize-variable for the variable help-at-pt-display-when-idle and set its value to t. (Or "always", which is what the Customize buffer says.) What was initially confusing here is that there's the mouse pointer, and also the cursor (which here on emacs.sx we call point). As mentioned above, org-mode by default sets the :help-echo property ...


3

I do not use Spacemacs, but this could be caused by mouse-avoidance-mode. It normally moves the mouse when the cursor is nearby. So it may also apply to tooltips, I am not sure. You can check if it is enabled with C-h v mouse-avoidance-mode. If it is not nil, you can disable it with (mouse-avoidance-mode -1). There are also several other options how the ...


2

You didn't specify which platform you're on, but under X11 you can do something like (setq x-gtk-use-system-tooltips nil) (setf (alist-get 'alpha tooltip-frame-parameters) 0.5) The first line is needed because otherwise emacs will use GTK tooltips, which don't respect the tooltip frame parameters. There does seem to be some support in GTK for changing the ...


1

I think you are looking for something like ivy-rich. You can configure what should be displayed in the minibuffer, including the help string of the functions. You can configure the ivy-rich-display-transformers-alist. For description of variables or functions you can configure columns: (:columns ((counsel-M-x-transformer (:width 40)) (ivy-rich-counsel-...


1

Customize option tooltip-frame-parameters, specifying an alpha parameter value that is less than 100. See the Elisp manual, node Font and Color Parameters, for information about parameter alpha. There, you see this: This parameter specifies the opacity of the frame, on graphical displays that support variable opacity. It should be an integer ...


1

Maintaining custom-set-variables by hand in your init file can be tricky. As the comment in your lisp snippet says there may only be one custom-set-variables for an emacs session. It may be that the custom-set-variables form is already in some other file like ~/.emacs.d/custom.el and not in ~/.emacs. You can determine where your customization information is ...


1

It is set for 0.5 sec. It is not customizable at the moment. But you can turn it off with the command rg-ref-cancel-link-messages I think.


1

This should do it. (setq-default mode-line-buffer-identification (list (propertize "%12b" 'face 'mode-line-buffer-id 'help-echo '(format "%s\nmouse-1: Previous buffer\nmouse-3: Next buffer" (buffer-name)) 'mouse-face '...


1

You probably want something like this. I think you need a function that matches the img, so you can get the region and remove flyspell overlays. Also you need to modify the add-hook call a bit. (setq x-gtk-use-system-tooltips nil) (defvar image-tooltip-re (concat "\\\\includegraphics{\\(?1:.*\\." (regexp-opt '("png" "PNG" "JPG" "jpeg" ...


1

highlight-regexp seems to assume that the value is a symbol which is defined as a face, it doesn't work with lists. However, the function is just a wrapper around font-lock-add-keywords, fortunately, you can call this function directly, for example: (font-lock-add-keywords nil '(("Cat" (0 '(face font-lock-warning-face help-echo "meow!"))))) This will set ...


1

You should return the propertized string in your image-tooltip code: (defun image-tooltip (window object position) (save-excursion (goto-char position) (let ((img-file (format "%s.png" (thing-at-point 'word)))) (propertize "Look in the minbuffer" 'display (create-image (expand-file-name img-file)))))) The code works fine in ...


1

No, not unless you run some code that combines the overlays, e.g., replacing some with one. For example, get the help-echo property from whichever you like, and add the text in it to the help-echo property of whichever overlay has the highest priority. Or create an overlay with a higher priority than the others, and whose help-echo property has all of the ...


Only top voted, non community-wiki answers of a minimum length are eligible