All Questions

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

Check non-quoted content in scribble-mode with flyspell-correct

I installed scribble-mode and flyspell-correct from MELPA, but when in scribble-mode only text in quotes is being checked for spelling. How can I get this setup to work similar to markdown or latex, ...
1
vote
1answer
9 views

Convert percent to decimal: (/ PERCENT 100)

To convert from percent to decimal:  divide by 100, and remove the "%" sign. The snippet (/ PERCENT 100) yields a seemingly unexpected result. E.g., Converting 50% to a decimal should yield ...
0
votes
1answer
6 views

Emacs ruby-mode how to prevent narrowed buffer from widening when manual save is triggered

I just discovered narrowing in Emacs, and it's great to be able to focus on a single function or block of code. However, after I narrow with C-x n n, make some changes and then save manually with C-x ...
1
vote
0answers
28 views

Canonical Structuring of Elisp Source Code Repository

Most language ecosystems have a canonical code repository structure for breaking a package or library into multiple files. This usually takes the form of a directory tree for splitting packages, ...
0
votes
0answers
15 views

auto-reverting occur buffer

I'm following a logfile with auto-revert-tail-mode. This works like a charm. But I'd like any errors in the log to be shown in a separate buffer that stays up-to-date as well. So I'm using occur, ...
0
votes
0answers
5 views

tags-table-list: load tags file on demand

I work upon several projects with tags tables. Some of them are located on remote server, some - local. I setup tags-table-list like this: (setq tags-table-list '("/ssh:server:/media/...
0
votes
0answers
23 views

How to highlight my citations in org mode export to latex

I am working in a latex document using terminal emacs 26.3 and org-mode (emacs-nox). But i am facing a tiny problem. Look when i press C-c C-x [ the mini-buffer prompts 1/1 Regex {&& Regex...}:...
1
vote
1answer
16 views

How to remove characters causing encoding error

When I visit any file under a certain file tree, emacs spits out this error: These default coding systems were tried to encode text in the buffer ‘ *temp file*’: (utf-8 (7862 . 4194279) (14646 . ...
0
votes
0answers
21 views

Limited Python syntax highlighting when running Emacs via Terminal app on MacOS

On my Macbook, I get different syntax highlighting for Python depending on how I launch Emacs. If I launch via the MacOS app (installed via Homebrew) I get full syntax highlighting (first screenshot) ...
0
votes
0answers
23 views

How to have a multiple line prompt terminal?

Using mainly ansi-term,term or vterm I'd like the prompt to contain a line with informations for directory,user and git, whilst the actual input prompt line to be below. I've heard of zsh though doubt ...
0
votes
0answers
14 views

Unified tag-based modification of org-clock-report

I have a single org-clocktable that displays entries from a variety of different contexts. I would like the indentation style of the report to be based on a combination of the sub-tree hierarchy and ...
1
vote
1answer
28 views

execute all org-mode code blocks in a region?

Is there a way to highlight a region of a org file and execute all code blocks in the region? What I was looking for is basically to execute all code blocks up to a certain point, where I am writing ...
0
votes
1answer
26 views

How to record statistics for habits with org-habit

I've started using org-habit this week. I can set my habits and see the nice colored consistency graph to track visually my habits. However, I would like to have a numeric record of this. For example, ...
0
votes
1answer
43 views

Why is (eq (car '('x)) 'x) => nil

Context In notmuch there is the a function that reads the :search-type property from a list and compares it to a symbol. This comparison is always nil for 'tree' / 'unthreaded, even though saved-...
0
votes
1answer
25 views

Make minimal working example for org-ref (Version 3)?

My .emacs includes these lines: (package-initialize) (require 'org-ref) I have a file called orgcite.bib which includes: @article{OrgCitations, author={org, mode and Syntax, Citation and ...
0
votes
1answer
20 views

overwrite: Limit functionality based upon text-properties

In this example, there exists an editable text widget field as follows: quantity: [______] Adding certain custom text-properties -- 'overwrite t -- to the underscores between the square-brackets ...
0
votes
0answers
10 views

How to make hideshow (hs-toggle-hiding) delimit blank lines for comments?

When using hideshow (specifically hs-hide-initial-comment-block), I often run into the problem where the very first comment is a license block, followed by a more detailed comment on the purpose of ...
1
vote
1answer
37 views

How can I use registers with Elisp?

It appears that all the documentation about registers revolves around C-x r [action] [char] or M-x [command] RET [char]. But let's say I want to create my own command using the register, how do I go ...
0
votes
0answers
23 views

Setup Magit Forge to connect Gitlab

I am using a Gitlab, say gitlab.company.org. My username on that machine is user and I am using 2FA. I have read the Forge User and Developer Manual. It asked to read and follow the instructions of ...
0
votes
0answers
23 views

CDLatex math-modify, parenthesis completion for orgmode outside of explicit environment

I would like to use CDLatex not just in specific Latex environments but anywhere. For example to quickly add emphasis or curly brackets for lesser used commands. Currently when typing a'e nothing ...
3
votes
1answer
26 views

Comint input and output text positioning

I'm using Emacs as a TCP client for a remote Python debugger I wrote. I can connect and interact with the server, but I'm not able to get the comint buffer used as the client to align input and output ...
3
votes
1answer
27 views

Is it possible for hideshow to display both the start and trailing comment characters?

Running hs-toggle-hiding converts a C-style multi-line comment from. /* * This is a comment. */ To: /* ... Is there a way to collepse the comment to: /* ... */ Instead?
0
votes
0answers
22 views

Pushing a gitlab release

Is there a way to push via Magit, so that the push will automatically produce a release in GitLab? For example: I prepare my files, open the Magit status buffer, stage the file via s, commit the file ...
0
votes
0answers
6 views

sql-interactive-mode get product name for the buffer

I have 2 connections to different servers through sql interactive mode: (setq sql-connection-alist '((mysql_server (sql-product 'mysql) (sql-server "server1") (sql-user &...
0
votes
0answers
44 views

Move the fringe indicators close to the window text

When I use olivetti-mode I'd like to have grey margins and the fringe indicators close to the window text, like in this picture: The problem is that when the fringes are wide the indicators end up ...
0
votes
0answers
46 views

emacsclient closes immediately on "*ERROR*: Beginning of buffer"

I have an app where I call emacsclient to do some editing on an org file. When it calls it, the frame flashes for an instant, then closes immediately. On stderr, I get the following message: *ERROR*:...
1
vote
2answers
35 views

How to control the number of characters for the SHA1 displayed in Magit's log view?

I've noticed some repositories use 7 characters, others 11 when displaying a SHA1. It looks as if magit uses the output of git log --pretty=oneline --abbrev-commit however I can't see how to configure ...
0
votes
1answer
21 views

HTML publish latex block images

I am trying to export a latex tikzpicture, like the following to html: #+begin_src latex :exports results :results raw file :file ex.png :output-dir ../img/ \begin{tikzpicture} \draw node[circle,...
0
votes
0answers
20 views

LaTeX equations in org-mode file missing when it's converted to word docx using pandoc?

I am trying to export org-mode files to docx using pandoc. One issue is that some equations involving external LaTeX packages do not show up in the exported word document. For example, the following ...
0
votes
0answers
21 views

Getting weird completions in shell mode

I'm getting unexpected completion suggestions in shell mode using company. For instance: I have no idea why it's suggesting random DLL filenames here. This is in Linux Emacs built from master of 2022-...
0
votes
1answer
30 views

sort: How to specify the order in which multiple sorts are performed

In the following example, there are two criteria for sorting -- orders with an inactive status should appear last in the last, and all orders should be organized by order number from smallest to ...
1
vote
2answers
85 views

How to disable Emacs bidi?

I want to disable Emacs from ever displaying text right-to-left (i.e. ignore Unicode control sequences to change text orientation). How to do it?
1
vote
1answer
36 views

WARNING: the following functions are not known to be defined: x-display-pixel-width, x-display-pixel-height, x-show-tip. emacs-nox

I'm using Emacs in terminal mode. I am not getting any error, what I am getting is just a warning, the following functions are not known to be defined: x-display-pixel-width, x-display-pixel-height, x-...
0
votes
0answers
16 views

Buffer display issue with unicode characters on WSL2

I have a file with a single Unicode character in it: 🕯 (Unicode character CANDLE, codepoint 128367, #o372557, #x1f56f). When I open this file via emacs -Q and hit C-l, the display buffer has issues. ...
0
votes
1answer
23 views

Why does org-mode not indent content under headings when I press tab?

In a buffer like this: * Heading ** Sub-heading content| pressing <tab> should result in this: * Heading ** Sub-heading content| Instead, nothing happens.
0
votes
0answers
19 views

custom-set-faces common color variables [duplicate]

I want to fine-tune my syntax highlighting, and have created a separate colors.el file that gets loaded around the beginning of init.el. I often use the same color for multiple entries, and it gets ...
0
votes
0answers
10 views

Can an agenda deadline warning be temporarily dismissed w/o editing org-deadline-warning-days?

I have many repeating tasks with deadline warnings. Sometimes I just want to see the reminder and dismiss it until the next day, i.e. remove it from that day's agenda. Currently, I manually subtract 1 ...
0
votes
0answers
30 views

No colored png icons in treemacs (Doom Emacs)

After reinstalling Doom Emacs several times I can’t find any way to make treemacs use the colored png icons of it’s own default theme. I always get monochrome icons. How do I solve this?
1
vote
1answer
27 views

How to configure Emacs to list the most recently used (MRU) completion options first?

I find autocomplete features in Emacs very helpful. Every time I type a partial word, it infers what the word I have in mind based on some history it has seen so far. I am not exactly sure how. I've ...
0
votes
0answers
14 views

How to setup GTK emacs to open files in its current instance instead of opening a popup window?

Spent a lot of time on this and tried various solutions on the internet. Please help. Using the following emacs version. Want to run it in GUI mode on an Ubuntu 20.04 server, same issue happens on ...
1
vote
2answers
30 views

Is there a way to get the name of the current file being opened?

I'm trying to conditionally load configuration in my init.el. How can I get the filename (preferable the extension) of the current file being opened? For example, if I run emacs foo.rs, I'd like to ...
0
votes
1answer
38 views

How to avoid this question: "Non-existent agenda file. [R]emove from list or [A]bort?"

When I create an .org file (C-x C-f, find-file), the following appears in the mini-buffer: "Non-existent agenda file. [R]emove from list or [A]bort?". The question is not asked when creating ...
0
votes
1answer
23 views

Is time-stamp broken?

I use GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.23) of 2020-11-09 (bundled with Ubuntu 21.10) with this init file: % cat ~/.emacs.d/init-1.el (add-hook 'before-save-hook 'time-...
1
vote
1answer
33 views

Is there a way to add display annotation to the buffer text so that it's searchable?

Suppose I have a text data file with various data values which the computer can parse easily, but it's not easy to read for a human. In order to make the file easier to read I'd add display only ...
0
votes
0answers
8 views

How do I make org-indent-mode put me at the right indent when I make a new line?

This is the current situation: * Heading ** Sub-heading *** Sub-headings content1<return> | I entered that text and now want to add a second line to the content by pressing return. My ...
0
votes
0answers
20 views

org-agenda not displaying agenda`org-agenda-skip: Wrong number of arguments: (0 . 1), 2`

I am having trouble using org-agenda with org-journal. Essentially invoking org-agenda and trying to list all todos does not work as intended. I have included the debug trace and associated ...
0
votes
0answers
30 views

Org-roam raises "Selecting deleted buffer" error after formatting laptop

I recently formatted my laptop's hard drive and reinstalled my OS (Manjaro in dual boot with Windows 11). I restored my entire emacs configuration on Manjaro and everything seems to work properly, ...
0
votes
0answers
15 views

Terminal layout is broken when I turn on lsp

I use lsp-mode when I write code for Rust, C++ with this init.el settings: (use-package lsp-mode ;; reformat code and add missing (or remove old) imports :hook ((rust-mode c++-mode) . lsp) :bind ...
0
votes
0answers
40 views

set variable only if its name is already interned

Is there a built-in function/macro of Emacs that sets a variable only if it is already defined? I mean something like that: (cl-defmacro set-if-interned (symbol-name value &optional (use-obarray ...
0
votes
0answers
9 views

(set-eshell-alias!) for mv causes error: missing destination file or directory

In doom emacs, I'm setting some aliases in my config as follows: (set-eshell-alias! "ls" "exa --icons $*" "doomsync" "~/.emacs.d/bin/doom sync" ...

15 30 50 per page
1
2 3 4 5
458