All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
24 views

How to highlight whitespace only in the active region?

I have global-whitespace-mode enabled which is configured to display TAB and SPC characters with (setq whitespace-style '(space-mark tab-mark)) How can I highlight whitespace characters only on ...
0
votes
1answer
77 views

Export Org-mode Headers Level 4 or Above as Headers in Texinfo

I am writing software documentation using Org-mode, but I also want to export the result as a Texinfo file. The process works well, however, Texinfo transforms level 4 headings into numbered lists ...
0
votes
1answer
15 views

How to insert text and activate the mark in the same function [duplicate]

I am trying to write a function where I insert some text, and then activate the mark at the end of the function. I have several use-cases where I would like to use this. I cannot figure out how do ...
0
votes
2answers
459 views

prevent auto indent temporarily for multi line conditional, loops, etc

When I am writing in c-mode, I prefer to write multi-line control statements in the following way. if( cond1 && cond2 || cond3 ) { /* stuff */ } for( i = 0; i < N; ++i ) { ...
1
vote
1answer
262 views

How to add bbdb contact from gnu message?

I am trying to figure out gnus and bbdb. I am able to read messages using gnus, but now I want to add contacts from the mail message into bbdb. I have read that ':' should display a prompt and allow ...
0
votes
1answer
36 views

Is it possible to run one emacs but from two terminals?

I was thinking about how I work normally on services. Where I might write code in an editor via Emacs in a terminal view, and in another terminal run the code, and yet still in another view tail the ...
0
votes
1answer
31 views

Adding a pattern to compilation-error-regexp-alist

I'm using the latest Doom Emacs on Emacs 27 with this config: https://github.com/gregghz/doom-config/tree/d3af4724cb4a5dd379645580698f7d24a5c3922a. I have this code to run a bloop command (like bloop ...
2
votes
2answers
320 views

Org-mode markup between square brackets

My question concerns org-mode. I'm trying to add the characters [ and ] to the org-emphasis-regexp-components in order to mark up words between square brackets. So I get for example the following ...
0
votes
0answers
10 views

Debugging ELPA and Emacs connection issues behind a corporate proxy

I'm having trouble getting to ELPA behind our corporate proxy. I see proxy traffic attempting to CONNECT to the ELPA domain which then fails. How can I turn on debugging to see the exact URL that ...
0
votes
0answers
12 views

Auto insert include guard in cpp header when inside projectile project

I am currently learning C++ and I came across include guards to avoid double inclusion. Now I would like to use the google's style convention like this : // project/src/app.hpp #ifndef ...
0
votes
0answers
18 views

Emacs PNG as a text showing freezes

I am trying to see image as a text but when I compile this program in Emacs it freezes. Is the problem in Emacs when showing images as text? My Python code is right below. import requests as req ...
4
votes
1answer
573 views

How to use web-mode to edit multiline HTML inside backticks?

I often work with Angular and Typescript, and I'm fond of putting my Angular templates directly into my Typescript files. The resulting code is essentially Javascript with HTML snippets in it, like ...
0
votes
1answer
27 views

Magit forge: updating the branch of a pull request

Does forge support updating the branch of a PR? Suppose that I checked out a PR branch with b y, and afterwards there were additional commits into this PR. It seems that I cannot pull these new ...
0
votes
1answer
26 views

magit status and git lfs files diff shows pointer diff

When I call magit-status git lfs files are shown as follows. modified src/myfile @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:...
1
vote
1answer
22 views

git-blame with spacemacs

I'm trying invoke magit-blame in spacemacs. If I do: SPC g b Then I see a "git-blame" section at the bottom which says: Press [_b_] again to blame further in the history, [_q_] to go up or ...
1
vote
1answer
20 views

How to change the default transient level temporarily? (“Show hidden magit commands”)

Many commands that are rarely used in magit are hidden by default. Magit uses the transient.el library for popups and the visibility of infix and suffix commands are controlled by transient-default-...
0
votes
1answer
8 views

Reverting a hunk without refreshing in Magit Diff

Typing v in Magit Diff mode causes an often slow and uncecessary refresh. Can this be avoided? For example when looking at a diff between a range of commits (say origin/mater...HEAD). Typing v (A.K.A. ...
0
votes
1answer
160 views

“Ignoreheading” Beamer Environment doesn't work with :BEAMER_act: Overlay

What I would like to do is the following: I have a beamer frame where I added :BEAMER_act: [<+->]. This works well with all blocks that follow, but not when I set :BEAMER_env: ignoreheading. ...
0
votes
0answers
19 views

How is folding setup in org-mode?

I'm trying to setup folding for Abaqus/Calculix inp files. The format is basically as follows: keywords are represented as * and it's contents are what follows. This is quite like org-mode. So far I'...
1
vote
1answer
222 views

How can you set clocktable scope dynamically? Or call it programmatically?

I want to get a clocktable for a list of files defined by a function, and I can't see a way to do that. In theory (according to this answer: Is there a simple way to use all org-files referenced in a ...
0
votes
0answers
14 views

export custom element in html from org-mode

I'm trying to figure out the simplest possible way to export an html document from org-mode and have it include a working custom-element. I've tried the following, but it gives me an error message in ...
0
votes
0answers
7 views

Include lines in tangled source code but not in executed code block

The title might be slightly confusing. What I mean is this. Let's say I have a code block which has some error checking code. If there is an error, the (tangled) program should not continue past that ...
4
votes
2answers
1k views

recover backup files

Is there a command for recover the current file from the backup ? I have a file ~/temp.txt and some backup files !home!djangoliv!temp.txt.~1~ ... !home!djangoliv!temp.txt.~5~, !home!djangoliv!temp....
0
votes
0answers
7 views

org export interanl [[links]] to keep link text

When exporting a document such as: * Title Link to [[Title]] The link text is converted to the section number. I.e. 1. Title Link to 1 Is there a way to keep the link text e.g.: 1. Title Link ...
0
votes
1answer
1k views

Symbol's value as variable is void: helm-map

Windows 10, Emacs 25.1 In my init.el (define-key helm-map (kbd "<tab>") 'helm-execute-persistent-action) But on start Emacs I get error: Symbol's value as variable is void: helm-map
0
votes
1answer
17 views

How to disable `clean-aindent-mode` in spacemacs configuration

I noticed that clean-aindent-mode is messing up the indentation as I am writing python files. Hence, I wanted to disable this mode, at least when using python mode. I can manually disable this mode, ...
0
votes
1answer
221 views

How to use flush-lines in a script?

I want to use flush-lines in a selected region, but I have troubles. Here it is my code: (defun delete-empty-lines () "Delete empty lines in bibliography." (interactive) ;; set point-min (...
0
votes
1answer
21 views

Prompt for stdin via `shell-command`

Sometimes when I copy+paste into my spacemacs over SSH, I get some random garbage that seems to be due to spacemacs interpreting some of the pasted content as commands. In vim, my workaround is to run ...
1
vote
1answer
19 views

flush-lines fails in script but works when called otherwise

I'm very new to programming in Elisp so maybe the mistake is there but I'm completely stuck right now. I wanted to make a small, simple Elisp function to remove the AUTOs from my Verilog files so I ...
1
vote
2answers
108 views

Add timestamp to file name in org export

How can I create a time stamped file name with the org header arg: #+export_file_name: <timestamp-var> + File name There is a variable org-time-stamp, is there a way to append it to the static ...
1
vote
2answers
79 views

Registering a custom link protocol as an image

In org mode, is there a way to define how #+CAPTION: ... would work for custom link types? i.e, make org refer to them as images. I created a custom link type called tex-fig (using org-link-set-...
5
votes
1answer
2k views

Preview Latex Fragment in org mode : blank square shown

I have an org file, where I put a LaTeX fragment to be rendered in line with C-c C-x C-l. It is a simple formula: \[ e^{i\pi} = -1 \] I have MiKTeX installed, latex and dvi commands work from ...
4
votes
1answer
1k views

Can I automatically export org deadlines and scheduled tasks as an iCal file and import it with another calendar app?

I would like to update Google Calendar / iCal automatically by exporting my org deadlines and scheduled tasks in .ics format, then automatically importing them into a cross-platform calendar app. I ...
1
vote
0answers
31 views

Custom keyword list for auto completion M-/?

I make use of M-/ for auto-completion. Is it possible to supply a custom list of frequently used keywords (e.g. for a niche programming language) to be loaded at Emacs startup? I could save the ...
1
vote
1answer
57 views

Choose where org-agenda-tree-to-indirect-buffer window opens

If I have an org file open: +----------------------------------------+ | | | | | ...
0
votes
0answers
13 views

PDF-TOOLS, black line in the middle of the window

I installed pdf-tools and tested few functions, it works great (the occur function is great). But when i open a pdf file i have a black line in the middle of the window (1or 2 pixel width), when i ...
0
votes
0answers
23 views

Split window on specific buffer

I am new to Emacs but I'm working hard to catch up :) I try to get Emacs splits a window (with C-x 3 for example) not on the same buffer (default behaviour) but on a specific *dashboard* buffer. I've ...
2
votes
1answer
187 views

Problem evaluating a `sage-shell-mode` function through `ob-sagemath`

I'm trying to use sage-math within an org-mode file. So far I've been able to configure the sage-shell-mode package (I'm impressed that sagemath can be installed in Debian using the package manager), ...
0
votes
2answers
92 views

Problem inserting timestamps when the year is far removed from the current date

I am editing an old text file that has each entry preceded by a date = 11/23/1983. I would like to reformat this date to a org timestamp. Using the various methods specified in the documentation is ...
0
votes
1answer
14 views

Differences between “helm-follow-mode” and “follow-mode”

"helm-follow-mode" vs. "follow-mode" Basically: what is the difference between their behaviours?
2
votes
2answers
310 views

TBLFM insert new row with current time

I want to insert a new row at line 2 in a table (preferably using TBLFM), and I want it to be prefilled with the current date (col 1) and time (col 2). How do I insert a new row (something like #+...
1
vote
1answer
118 views

How to auto highlight buffer or region in web-mode?

I'm using web-mode 13.1.25, but was until today on 12.x with the same issue. It seems I need to continually choose Highlight buffer (C-c C-h) as otherwise, certain functions misbehave. These steps ...
8
votes
2answers
3k views

Launch emacs with ediff-files (of ediff-directories) from command line

I would like to launch emacs to ediff either files or directories. For example, I'd like something like: emacs -f ediff-files file1 file2 But when I do this, it doesn't take file1 and file2 as the ...
0
votes
1answer
1k views

How to add matlab integration-spacemacs?

I already installed matlab-mode from the package list. However, not sure where to add the path in ~/.spacemacs. Its a huge file, and the code structure look different from the path file: (...
0
votes
1answer
18 views

Paste into org-mode: utf-8-unix cannot encode \207 for á, \222 for í,

I'm learning emacs (on spacemacs) and focusing on orgmode. When I paste into an org-mode buffer from a non-english language that contains accents and other signs (in my case italian and spanish) I get:...
1
vote
1answer
35 views

Restrict agenda to current buffer (with few keystrokes)

I would like to call an agenda which is restricted to the current buffer, even if it is not in the agenda files. I tried to go one way with a custom agenda here, but it feels like maybe peeling the ...
6
votes
1answer
2k views

Chatting on Hangouts with Emacs

This question asks how to connect to Google Hangouts with Jabber specifically, but I want to un-XY it. Google has dropped support for XMPP and switched to a proprietary protocol. Is there an existing ...
0
votes
1answer
31 views

Is the GPG signature of Emacs 26.3 still valid?

I was trying to install Emacs on my Windows 8.1 machine (thus WSL is not an option). I downloaded the file from a mirror (emacs-26.3-x86_64.zip), along with his signature (emacs-26.3-x86_64.zip.sig). ...
0
votes
0answers
8 views

How to customize to open helm-mini buffer in the same buffer on bottom or right-hand side?

I just want to open helm-buffer (*helm recentf* and *helm for files*) to open as mini buffer on the 40% bottom of the buffer. If possible I want to costumize to open just only *helm for files* on ...
0
votes
0answers
33 views

How to prevent `*scratch*` or `*Messages*` buffer to show up when I open via `emacs -Q`?

I realize when I open emacs using emacs -Q I can see *scratch* for a very short time. Sometimes 1ms or half a second. => How to prevent *scratch* or *Messages* buffer to show up when I open via ...

15 30 50 per page