Questions tagged [buttons]

13 questions
8
votes
1 answer

How do I create a button in Emacs?

I'm trying to create *Help* buffers in Emacs, documenting functions defined in other languages. I can create a simple help buffer easily: (defun wh/help-hello-world () (interactive) (with-help-window (help-buffer) (princ "foo_bar is a…
Wilfred Hughes
  • 6,890
  • 2
  • 29
  • 59
5
votes
1 answer

Why does mousing over one button also highlight adjacent buttons?

I'm using some buttons, and want to arrange them in a row. That is, some will be directly next to each other. I don't want whitespace between them. This is easy enough to do: However, when I do this, mousing over either of them highlights both. I…
zck
  • 8,984
  • 2
  • 31
  • 65
4
votes
1 answer

What would be the simplest way to add a "Copy to clipboard" button to html-exported source blocks in an org-mode file?

I am writing documentation for an API in org-mode, and exporting to HTML. I would like the exported HTML source blocks to have an associated button that copies the code to the clipboard, achieving something like the following: I suspect that I'll…
mvarela
  • 161
  • 6
3
votes
1 answer

Documentation of the action of a button

I want to know what happens if I click on a button (a link) in an Emacs buffer, so I type C-h c (describe-key-briefly) and click the button, but all I'm told is: (translated from ) at that spot runs the command…
2
votes
2 answers

Mode for attaching (clickable) actions to matching text

I'm looking for a minor mode that would let me attach actions to text that matches some pattern. Like, for example, match urls, emails and pathnames (or any other thing) and create buttons that run some command on click. Think of it as of a…
2
votes
1 answer

Make opening clickable filenames from Help mode in same window

When I'm in Help-mode buffer generated from describe-function or similar command - after placing cursor on clickable filename text I wish to open this file in the same window (ideally I wish I could also kill this help buffer the same time). How can…
sandric
  • 1,221
  • 9
  • 19
1
vote
0 answers

How to implement a nice read-only buffer with accordions and buttons/hyperlinks?

We would like to devise an Emacs front-end that queries a back-end (generating a list of items in JSON format or so, each with a title, long description, and an URL), and displays this list in a special buffer, with a button to unhide the…
ErikMD
  • 126
  • 5
1
vote
2 answers

Make text clickable: add urls with a loop

In my LaTeX code I have functions that generate hyperlinks in the PDF file. I have, e.g.: \newcommand{\arXivid}[1]{\href{https://arxiv.org/abs/#1}{\tt arXiv:#1}} So, in my LaTeX code I have strings like \arXivid{1207.7235} that points to…
Gabriele Nicolardi
  • 1,199
  • 8
  • 17
1
vote
1 answer

tabbar scroll picture button grayed out when only one tab is active

I replaced the image for tabbar scroll. Original: Replaced them with the following lines in the init file: ;; Load a new tabbar arrow image (setq tabbar-scroll-left-button-enabled-image-one '((:type png :file "~/tabbar-scroll-left.png" :ascent…
cdnszip
  • 347
  • 1
  • 7
0
votes
1 answer

Activating buttons

Have made an interactive function qrh so that I can use buttons to display some strings contained in organis-f8 and organis-b8. Can all this be simplified ? It seems to me that a button always requires a function that can be passed a button. …
Dilna
  • 1,173
  • 3
  • 10
0
votes
1 answer

Making a button within a dedicated buffer

Haw can one introduce a button within a dedicated buffer? With a text area in the middle.
Dilna
  • 1,173
  • 3
  • 10
0
votes
0 answers

Widgets: How to notify on exiting "editable-field"

This is a follow-up on Creating buttons/input fields. I learned that forms (or rather its elements) in Emacs are called widgets and I am now experimenting on how I can get the best result for what I like to build. Since some editable-field values…
Phoenix
  • 341
  • 1
  • 8
0
votes
1 answer

Creating buttons/input fields

The options/customization as well as the install packages buffers demonstrate that it is possible to have buttons, links and input fields. Is this something one could fairly easily duplicate to create a form? Currently I use a mixture of…
Phoenix
  • 341
  • 1
  • 8