All Questions

0
votes
1answer
22 views

Custom command like execute-extended-command

I want to implement a custom M-x (execute-extended-command). This time real skeleton-coding (crying) (defun gbq-extended-command (inst) (interactive "sgbq-X ") (cond ((equal inst "eob") (end-of-...
0
votes
3answers
38 views

How to prompt to ask for confirmation when C-x C-c in emacsclient?

I use (setq desktop-save 'ask) in my init.el, so every time I C-x C-c to exit Emacs, it will prompt to ask if saving desktop or not; I use this trick to avoid accidentally exiting Emacs. But after ...
0
votes
3answers
54 views

How to display absolute line numbers of a full, widened buffer when narrowing to just part of it?

This question applies in the context of all line numbering implementations I've tried, including line-number, nlinum, and linum, so I have a feeling that the answer will have something to do with ...
0
votes
1answer
26 views

remembering auth details for excorporate with .netrc

I've set up excorporate mode so that I can use emacs to read my outlook calendar. However I am annoyed by having to input a username/password every time I open emacs. I tried a .netrc: machine ...
0
votes
0answers
39 views

How to make org understand a custom timestamp format

I have the following line below a "TODO": SCHEDULED: <Oct 27, 2018 08:30PM> Right now, the org-mode throws the following error: Error was: (Not a standard Org time string: Oct 27, 2018 08:...
0
votes
0answers
48 views

On using Elisp macros for partial application

I want to improve my Elisp, but despite reading about the differences between functions and macros (including discussions here in Emacs SE and on Reddit), I still find examples where the distinction ...
0
votes
1answer
38 views

Prevent mouse click from changing cursor position while in insert mode

I work on a laptop most of the time and it happens somewhat often that while inserting some text (in evil mode) I will accidentally hit the touchpad with my thumb, changing the cursor position and ...
3
votes
1answer
165 views

Is there an X11-free build of Emacs that can run on Wayland (not going through XWayland)

I am running Wayland on Ubuntu 18.04. According to the Wayland FAX, one of it's advantages, compared to X11, is that Wayland allows better isolation between processes: one window cannot access ...
0
votes
4answers
127 views

Can someone recommend a good text editor for Emacs? [closed]

I'm looking for a good way to edit text within Emacs. Can someone give some good recommendations for text-editors for Emacs.
0
votes
0answers
23 views

Repeating org-mode templates, using headings

I would like some way to define a template of org headings (not checkboxes) which can then be instantiated and checked off. For example, here's a template: * template ** cast razor sharpening spell *...
2
votes
1answer
69 views

AucTeX multiple files parsing not working

I have not been using LaTeX for quite some while, so I might be missing something obvious. I have a multiple file document and want to make AUCTeX aware of the master file. The minimal example looks ...
0
votes
1answer
27 views

Indentation broken with all \input{files.tex}

Everything is in the title : a master.tex file contains several \input{subfileXX.tex} ; the indentation works in the master file but not in the subfiles. The TAB key acts like in LibreOffice.
0
votes
1answer
27 views

How to set mail-user-agent to mu4e-user-agent

Pressing , m in an org buffer does org-mime-org-buffer-htmlize and opens the htmlized message in message-mode but I want it in mu4e-compose-mode. How can I have this message opened in mu4e in order ...
0
votes
1answer
40 views

How to auto-complete links to headlines in org-mode?

Given an example.org file having two headlines, I would like to auto-complete links to 1headlines. However hitting M-\ on [[* suggests *bold* words but not headlines. Any ideas what I'm 2missing? * ...
3
votes
1answer
150 views

regexp: exclude repeated characters for highlight - hi-lock-mode

I want to search using regexp to capture plain text. I want to capture passages that begin with opening quotation marks and end at the end of the paragraph, and even though the quote continues onto a ...
1
vote
0answers
34 views

Associate a buffer with a process

I am using Python with elpy. I am trying to use a Python shell opened on the remote computer using a shell buffer. I can cheat elpy by renaming the shell buffer with Python running in it to *Python*. ...
2
votes
2answers
73 views

Invalid read syntax “#”

I'm having trouble using: (add-hook ’before-save-hook #’gofmt-before-save) This is supposed to format the go code before saving. The error I get is: Debugger entered--Lisp error: (invalid-read-...
1
vote
1answer
79 views

Emacs evil-mode C-c/C-x to “cc”/“cx”. ( key translation)

I read in evil wiki that I can change prefix keys such as C-c or C-x and so on to cc, cx, but I'm not experienced in Elisp and I tried a lot of variants but I can only define c as C-c but not a cc to ...
0
votes
1answer
25 views

Minibuffer text alignment problem

The text that is displayed in my mini buffer is misaligned, like this https://imgur.com/a/htfRVI3 Specially all the columns are garbled, like its trying to wrap text? How can I make it so that they ...
0
votes
1answer
42 views

Filter for tags in plain org

I am sure this is a trivial question, but I just started out and honestly can't solve it. I have a plain org file. Where I created a couple of headlines, which I tagged. How do I list all headlines ...
1
vote
1answer
37 views

Calling a fuction after org capturing

Is there a way to call a certain function after a certain org-capture template has been run (successfully, ie. not aborted)?
0
votes
0answers
24 views

Using org-mode clock-report, how can I add a total row + cell with a formula that is automatically updated upon dblock update?

I am having trouble with using the formulas to create a cell that totals a column. Is it possible to dynamically add a line and a total cell to the bottom of clock report tables? because when I add a ...
7
votes
1answer
85 views

How to alphabetize strings with diacritics?

Q: how do I alphabetize strings with diacritics? Problem I have a long list of author names, some of whom have letters with diacritics in their names (e.g., "á" or "é"). I want to sort this list ...
2
votes
1answer
44 views

Emacs think there is an accented character in the keystroke

Version GNU Emacs 26.1 (build 1, x86_64-apple-darwin14.5.0, NS appkit-1348.17 Version 10.10.5 (Build 14F2511)) of 2018-05-31 Use emacs -Q with following config: (setq mac-command-modifier 'super) (...
5
votes
1answer
135 views

How do I delete all blank lines in a buffer? [duplicate]

Emacs 26.1 In buffer 1 2 3 4 I use command "delete-blank-lines". But it NOT delete ALL BLANK LINES. It's delete ONLY ONE BLANK LINE. Why? I need to delete ALL BLANK LINES. The result must be ...
0
votes
0answers
14 views

Customize dictionary for helm-dabbrev or dabbrev

I have a list of tag strings used in my org files. I would like to use helm-dabbrev or dabbrev (or some functions support dictionary) to tab-complete my tag strings. Can I customize the dictionary (...
2
votes
2answers
24 views

suppress command echoes from menu-bar items

When selecting items from the menu-bar, then the echo area echoes the selected menu item. Test this by selecting menu-bar -> file -> new window below, when you clicked this menu-bar item, then ...
0
votes
1answer
24 views

`create-image` works with file-location input but fails with string-of-bytes input

Am wondering if anyone can tell me what I'm doing wrong. Basically the commented out code fails.. thanks (let* ((img-file "/tmp/x.png") (img-str (with-temp-buffer (insert-file-contents img-...
1
vote
1answer
42 views

Changing input method in term mode

If I try to change input method in emacs and send to some text. buffer is read only message is shown in minibuffer. How can I use other input method in emacs term mode? I'm using emacs multi-term.
0
votes
0answers
21 views

When gdb debugging, can local window in emacs show c++ object's value correctly?

Suppose I've this code: #include "map" #include "string" using namespace std; int main () { map<string, string> m = {{"1", "2"}}; return 0; } If I set BP at "return 0" and when it's ...
4
votes
1answer
54 views

How can I export an Org subtree to HTML from the command line?

I have a list of links that I store in a subtree in an org file. Is there a way to export this to an HTML file using the command line? I figure it's something like emacsclient --eval ... with an elisp ...
0
votes
1answer
32 views

Highlight some specific text in Emacs

I am using web-mode for my php files: http://web-mode.org/ And I call often a php function which looks like this: __lg('Some text here', 'Global', NULL, FALSE); This function can be call with only ...
0
votes
0answers
40 views

ESS installation does not initialize flymake

I install ESS following these directions, adding these to ~/.emacs: (require 'package) (add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/")) (add-to-...
2
votes
1answer
151 views

Merge org tables

Let's say I have the following org-tables: | col1 | col2 | | 1 | 2 | | col3 | | 3 | What's the easiest programmatic way to get the following output: | col1 | col2 | col3 | | 1 | 2 | ...
0
votes
0answers
30 views

Help debugging: org-mode hangs on agenda tag search

I'm still pretty new to emacs and org mode, and I would really appreciate some help debugging a weird issue I'm having. When I try to do an agenda search by tag (C-c C-a m [some tag]), emacs just ...
0
votes
2answers
28 views

Matching two columns in a table

I deal with a two column table where I have to match data from two sources. The first column contains names of persons for whom, service is provided. The second, persons who are billed. My job is to ...
0
votes
1answer
35 views

Sometimes Emacs gets stuck with non-working capslock key

I'm using Emacs 26.1 on Windows 10. Sometimes, the capslock key stops working: The key is activated but typing letters does not result in capital letters being inserted into a buffer. It works with ...
0
votes
1answer
46 views

How to clang-format the current buffer on save?

Whats the best way to clang-format a C/C++/GLSL a buffer on save, that does nothing in the case there is no clang-format file found for a project?
1
vote
1answer
307 views

How do I silently write to a temporary file?

I made a modification in org-pomodoro to send the mode line to a pipe which I use in xmobar, but it keeps spamming my *Messages* buffer, thus making the line which displays it almost useless. (write-...
0
votes
0answers
17 views

Can not keep keybindings

How can I keep key-bindings in all modes? Following bindings are initially working though overwritten by another major mode e.g. org (defun dotspacemacs/user-config () (exwm-input-set-key (kbd "M-h")...
2
votes
3answers
52 views

How to maximize my Emacs height on start-up?

emacs -fh would start emacs in window mode using full height available from the desktop environment. I'm tired of typing this -fh every time yet there doesn't seem to exist a command that does the ...
1
vote
1answer
21 views

How to change font size only for the buffer *Org Export Dispatcher*?

I'm using emacs with a large font, however I do not need the font to be too large on certain buffers and/or modes. For example, when I use neotree I use a different font and a smaller size, I do that ...
2
votes
1answer
29 views

Multiple transient (and colorful) mark-modes

When reading a book it's nice to have a marker to highlight some phrases. When re-reading my own code, I often would like to highlight several regions ("here is the set-up", "here is the conclusion", ...
0
votes
1answer
16 views

Adding speedbar support for a language major mode?

It appears to me that go-mode and speedbar are not working together - the .go files do not appear in the file list. https://github.com/dominikh/go-mode.el/issues/270 is a bug on go-mode which ...
1
vote
1answer
57 views

Can not refer to RESULTS in org-babel

I need to plot data evaluated in org-mode. Referring to #+RESULTS: returns org-babel-ref-resolve: Reference ‘myResult’ not found in this buffer whereas referring to #+tblname: works. #+RESULTS: ...
0
votes
0answers
24 views

elisp: create window layout with specific cycling order

I'd like to create a window layout like so: -----------|-------------- a | b -----------|-------------- d | c -----------|-------------- This is so that I can cycle from a ->...
0
votes
1answer
35 views

Indentation: 4 spaces everywhere

This morning, my Emacs changed its indentation rules, and now it indents by 2 spaces, specifically in JS and HTML. It even re-indents code on which I work to 2 spaces, which is unacceptable. Please ...
2
votes
2answers
46 views

How to make M-x ansi-term behave like M-x shell (opening in new window)?

I use (global-set-key (kbd "C-c a") '(lambda () (interactive) (ansi-term "/bin/bash"))) to open a bash ansi-term. Unlike M-x shell, this "occupies" the whole buffer/frame. I am wondering if one ...
0
votes
2answers
17 views

How to change line COUNT for for evil-scroll-up

How to change line COUNT with C-u or C-d for evil-scroll-up or evil-scroll-down? From Spacemacs help: C-u (evil-scroll-up COUNT) C-d (evil-scroll-down COUNT) If COUNT is not specified the function ...
2
votes
1answer
22 views

Binding a key to 'open -a Terminal .' on macOS

I'd like to do something like this (global-set-key (kbd "C-c t") (kbd "M-! /usr/bin/open -a Terminal . RET")) ... in order to open a (real, the) terminal from the current working directory in macOS ...

15 30 50 per page