All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
6 views

Getting started with version control

I have read https://www.emacswiki.org/emacs/VersionControl https://www.emacswiki.org/emacs/RevisionControlSystem but I'm missing something... What is the starting point? What do I need to install, if ...
0 votes
0 answers
3 views

Mixing org-mode export backends

How can I export to a single file using several backends for different parts of the org file? Specifically, when exporting an org file with a specific backend, I want to be able to export some ...
1 vote
1 answer
17 views

Make auctex ask me only for position and width when inserting a minipage environment

If I insert a minipage environment using auctex LaTeX-environment it asks me for "Position", "Height", "Inner Position" and "Width". However I only want to be ...
0 votes
1 answer
15 views

electric pair mode only inserts two double quotes after inserting a double quote in some buffers?

I have electric-pair-mode on, but the behavior with double quotes is not working as expected in some buffers. In one of the affected buffers: he said " it does not insert the matching double ...
0 votes
0 answers
9 views

Parse elfeed's entry cl-struct

I'm trying to display notifications using elfeed's hook and alert. This works: (add-hook 'elfeed-new-entry-hook (lambda (entry) (alert (prin1-to-string (elfeed-entry-content ...
0 votes
0 answers
7 views

Remove extra quotes in `prin1-to-string` output?

I'm trying to parse entries in elfeed and it occasionally works, but the output gets unnecessarily quoted (image below). Is there an equivalent to prin1-to-string function that doesn't return the ...
0 votes
1 answer
68 views

Completing underscored words without making _ a word character

I would like to use evil-complete-previous (or whatever) to complete strings_such_as_this, which is by default not possible. It is possible after (modify-syntax-entry ?_ "w"), but this has the ...
12 votes
4 answers
2k views

Org Mode Babel - Interactive code block evaluation

I would like to evaluate in org mode source code blocks in C++ containing "cin" instructions but I can't find a way to have an interactive evaluation (with user input) during evaluation. Example of ...
1 vote
1 answer
37 views

use keymap-set to bind to string

I used to use global-set-key to bind a key sequence to a string: (global-set-key (kbd "<f9> a") "text") Now in v29.1, C-h f global-set-key: This is a legacy function; see ...
0 votes
1 answer
22 views

What is org-capture trying to write to my init.el file?

My init.el is symlinked by NixOS, so that means it's write protected. For some reason, after org-capture, Emacs tries to write to this file. I'm not sure I understand what it's trying to write?;) ...
1 vote
2 answers
932 views

How to enable yasnippets for all modes?

Company doesn't show snippets in some modes e.g. python or sh. Yet yas/describe-tables displays all snippets. In other modes e.g. org,emacs-lisp, snippets are shown as expected. Looking at company-...
1 vote
2 answers
800 views

Syntax/indentation problems with Vue mode in Emacs 27 nightly

I'm using vue-mode, based on mmm-mode with Emacs 27 nightly from 10/10/2019. Since that Emacs update, I don't get any indentation support in the script section of a Vue file. Try this file with emacs -...
1 vote
2 answers
111 views

Why can't I use `defconst` to define a new rx?

I want to define a new rx to use within another rx definition, like so: (defconst my-word (rx (or word "*"))) (defconst my-regex (rx (1+ my-word))) However, this code returns the ...
0 votes
0 answers
28 views

How edit .org file in text mode

Is there any way to temporarily change the mode of org files to be able to edit them as ordinary text files?
3 votes
1 answer
121 views

What are the downsides of changing the syntax class of quotes in text-mode and backslash in AUCTeX?

It bothered me that sexp navigation commands didn't treat a quoted string as a single expression in text-mode. This is because the quote character " is in the punctuation syntax class in the text-mode ...
0 votes
1 answer
17 views

Define new comment style with string literals rather than characters

I am trying to define another comment style, similar to what we can do with modify-syntax-entry: (modify-syntax-entry ?/ ". 124b") (modify-syntax-entry ?* ". 23") (modify-syntax-...
13 votes
2 answers
1k views

orgmode line wrap except table

In orgmode, how can I get below line wrap behavior: for text (other than table), I wish line wrapped. for table, I do not wish it's wrapped. I can add below line in init.el (global-visual-line-mode ...
-1 votes
0 answers
56 views

How can I use code from `glasses.el` to colour capital letters? [duplicate]

I want to take some code from glasses.el so I can make a function that colours phrases in Camel Case, so that capital letters are rendered in a different colour. How can I do this? Here is a function ...
0 votes
1 answer
43 views

Define command that executes several functions

I apologize for this question, for which I know an elementary answer exists that I can't find for the life of me. I would simply like to define a command that executes several functions sequentially. ...
0 votes
1 answer
26 views

Use rx to highlight a specific group in a match [duplicate]

I am trying to write a major mode for a language, and I am working on the syntax highlighter. I am using rx with some success, however I need to highlight the following pattern: `somemacro(args...)` ...
0 votes
1 answer
89 views

Windows pdf-tools-install no such program: autoreconf

I'm trying to install pdf-tools on my Windows System, I'm using the same config as for Arch Linux where this error is fixed by installing the arch linux pdf-tools package via pacman. Obviously this is ...
0 votes
2 answers
54 views

Refile to any headline with of given TODO item types

My org file structure is as follows: * JOB Major Project 1 ** PROJECT Mini Project p ** PROJECT Mini Project q * JOB Major Project 2 ** PROJECT Mini Project x ** PROJECT Mini Project y JOB and ...
0 votes
2 answers
45 views

How can I use a file of Elisp code as a script?

I have written a code: ;;; calculator.el --- Calculator ;;; Commentary: ;;; Code: (let ((operand1 (read-number "Enter the first number: ")) (operand2 (read-number "Enter the ...
0 votes
1 answer
48 views

How to properly execute `gif-screencast-stop` before `save-buffers-kill-emacs`?

I am running Emacs 27.1 on Ubuntu. I have installed gif-screencast and have gotten it to start recording whenever i start Emacs by adding (gif-screencast) to my init.el. So far, so good. The problem ...
0 votes
1 answer
45 views

How to use regular expressions with helm-projectile-grep?

I would like to find all strings in files matching the pattern foo_*_bar. I know that one can use \s to match empty characters. What's the pattern for zero or more characters? Could not find it by ...
4 votes
3 answers
1k views

Emacs: Get user input when using interactive Python with `getpass`

I am, unfortunately, using Windows 7 and am running GNU Emacs 25.3.1 (x86_64-w64-mingw32) of 2017-09-26. Everything functions as expected from the command line. However, within Emacs, I encounter a ...
0 votes
1 answer
31 views

extend org-tags-view to show body of the matching node

In my org files I have many entries that hold a tag. I use them (among many other things) to create reading lists and such. The org-tags-view then shows these items in a list and I browse through them....
0 votes
1 answer
68 views

Undo one specific line in a text file within Emacs

Usually when doing the normal undo it will undo all code changes since you went into insert-mode (for me it's evil-undo). I was wondering if it were possible to implement a function that will only ...
0 votes
1 answer
431 views

C++ lsp-mode: inconsistent behavior between remote and local projects

I've run into a bit of an odd problem trying to use lsp-mode. My problem setup is as follows: I'm working on a C++ project on my computer, and I'd like to be able to use lsp-mode with it. The catch is ...
0 votes
1 answer
108 views

How do I specify the window height of the Python interpreter?

Suppose I am editing a file in python-mode. If I start the Python interpreter using M-x run-python (or C-c C-p), the Python interpreter opens in a window (*Python*) in the bottom half of the frame. ...
0 votes
0 answers
6 views

Can literal prefixes be privileged in counsel-find-file ordering?

After many years of living in vanilla Emacs, I am playing with souping things up a bit, and trying out ivy/counsel. I'm finding the experience of counsel-find-file a bit jarring, because it does not ...
0 votes
2 answers
45 views

Using different line length for comment blocks

I am setting the fill column (80) to specify the maximum width of a line before it should be automatically wrapped or broken into multiple lines. Although this setting is useful for ensuring ...
0 votes
0 answers
15 views

Emacs shell exits after executing a cygwin command

Windows, Emacs 27.2. I execute fairly simple cygwin commands from an Emacs shell - first tried unzip then backed up to test ls - and the shell exits. Why?
5 votes
1 answer
1k views

Org mode python code block with session does not return a result

I had been successfully using python code blocks with the :session header argument when I noticed that upon export no result was given. I then simplified my example to the following two: #+...
0 votes
2 answers
50 views

How do you handle an error in the scope of current-buffer with condition-case?

I would like to create headings and subheadings with org-capture if they don't exist with file+olp in my templates. The problem is that I get this message Heading not found on level 1. I'm not sure ...
0 votes
1 answer
67 views

Why is Doom Emacs GUI not accepting keyboard input?

Noob question. I downloaded Doom Emacs following the installation instructions in the documentation. Now when I run the emacs command, it opens up the Doom Emacs window. Unfortunately, as I try ...
1 vote
1 answer
78 views

ff-find-other-file

works well, particularly after custom defining additional file type pairs with (defvar my-cpp-other-file-alist '(("\\.cpp\\'" (".hpp" ".cuh")) ...
0 votes
1 answer
45 views

why does emacs open an empty buffer named "BLANK" on startup?

When I start emacs, it opens an empty buffer named BLANK. I have no idea where this comes from and would like to not have it there, since there's nothing in it and it clutters up the buffer list. I do ...
34 votes
4 answers
22k views

Wrap cell content in an org mode table

I have a table like this: | Verse No | Verse | | | <10> | | 1 | line1 li=> | | 2 | line2 li=> | I would like to view it as | Verse No | Verse | | ...
13 votes
2 answers
3k views

Org-table: is it possible to have automatic line wrapping inside org-tables?

Org-table has a very convenient property, it expands the width of a table column if needed to show all your text in a cell. Alternatively, you can set a fixed width for a table column and let your ...
2 votes
1 answer
240 views

Web-mode left arrow without the right closing angle bracket

When using Elixir html template (.eex) in web-mode, I sometimes need to type code like <%= for bid <- @bids do %> . At the moment because the opening left angled bracked is closed immediately ...
0 votes
0 answers
43 views

disable built-in flymake completely

I'm running emacs-29.1 on ubuntu-23.10 (installed from https://ppa.launchpadcontent.net/ubuntuhandbook1/emacs/ubuntu/), and it has flymake built-in and default to running. There are similar questions ...
5 votes
1 answer
714 views

Possible to supress the: "Blocking call to accept-process-output with quit inhibited!!" message?

When running a process from a timer, this message is printed a lot. Is there a way to suppress the message entirely? For reference see: https://emacs.stackexchange.com/a/50681/2418
1 vote
1 answer
42 views

How can I make AUCTeX recognise this macro?

I'm writing a custom helper command for my beamer presentation: \newcommand{\sectionfigure}[1]{ \begin{tikzpicture}[overlay, remember picture] \node at ([shift={(0, 0.27925\paperheight)}] foot....
0 votes
2 answers
29 views

How to tell tramp to not ask me about autosave on local directory?

Sometimes, when I edit a file with tramp, it asks me: "Autosave file on local temporary directory, do you want to continue?(yes or no)" I want to continue in any case. How can I disable this ...
0 votes
1 answer
53 views

Insert aligned multi-line text in current buffer regardless of position?

I'm creating a function to easily insert ditaa boxes while drafting reports in org-mode. I have the meat of the function accomplished, but not sure how to implement it so that boxes can be inserted ...
4 votes
1 answer
193 views

hs-minor-mode: hide only some comment

In ESS mode with hs-minor-mode on, I want to collapse only those comments which directly belong to a function, not other comments which are separated by newlines. Take this example: ############## ##...
0 votes
1 answer
16 views

can org-refile-targets match headings *without* a given tag?

I can configure org-refile-targets to match headings in an org file with a certain tag. Can I do an arbitrary tag match? I'm interested in headings without a certain tag. (For example, I'd like to ...
0 votes
1 answer
27 views

org-mode: How to define then call a Java method using source blocks

I have a super simple example where I have a list, a Java method and a call to this method. It looks like this: #+name: animals - dog - cat - guinea pig - horse #+name: does-contains-cat #+begin_src ...
2 votes
1 answer
97 views

What does "(which see)" mean in various Emacs help docstrings?

In various Emacs docstrings the text include the "(which see)" mention right after a reference to a variable as shown in the second paragraph of the example below, taken from the emacs-lock ...

15 30 50 per page
1
2 3 4 5
527