All Questions

Filter by
Sorted by
Tagged with
45
votes
2answers
17k views

How can I troubleshoot a very slow Emacs?

I am writing a document and I have a problem with Emacs' performance that I think appeared just yesterday. I haven't made any alterations in my init file or installed any new packages. The problem is ...
1
vote
0answers
7 views

Derived major mode: new keyword fontification not playing nice with parent mode's

I am writing a major mode derived from f90-mode in order to fontify the syntax of a commonly used Fortran preprocessor, fypp (similar to jinja2 for HTML templating). Here's a contrived example of what ...
1
vote
1answer
530 views

How to disable semantic highlighting in lsp-mode?

Language server mode has a variable for semantic highlighting lsp-ht, I would like to disable all syntax highlighting in lsp-mode. Is this possible? (setq lsp-enable-links nil) (setq lsp-enable-...
0
votes
1answer
33 views

How to diagnose emacs running at 100% cpu

I'm having a problem where occassionally emacs will run at 100% cpu, and just hang forever. I've attached gdb to the process, and this is the stacktrace: #0 0x00007fc210e5c5bb in pthread_sigmask () ...
0
votes
1answer
21 views

How do I save raw bytes into a file?

I'm trying to make a .wav file generator in Emacs Lisp. I have some binary data, as a sequence of bytes: (setq binary-data (list 62 236 60)) I would like to insert that data into a file. I expect ...
1
vote
0answers
37 views

Pre-populate property entry menu with items from setup file

I have a collection of Org files that all link to a central properties file in which I specify _ALL properties so that I can get uniform entry of information across many files: #+SETUPFILE: ../../...
0
votes
0answers
17 views

Org-ref: how to get absolute path of bibliography in exported LaTeX file

I use Org-ref to insert references in Org mode when writing articles. I prefer to put bib files in a separate place, say /bib/ref.bib, instead of putting together with org files in ~/org/. After ...
0
votes
1answer
20 views

Asterisk in interactive specification

Just when is it appropriate to put the asterisk * into the interactive spec of a command function? The elisp manual says the effect is to cause an error if the command is attempted in a read only ...
0
votes
0answers
5 views

android - sqlite command from powershell

I run below sqlite command from powershell in win10, but it report error message: Error: no such column: android_id That column android_id exist in the database actually! adb shell "sqlite3 /...
0
votes
1answer
46 views
+50

Find file in a project in a mono-repo like `projectile-find-file`

My code base consists of a "mono-repo". A single large repository containing a flat structure of projects. Top Project1 Project2 Project3 Library Library I've been using ...
0
votes
1answer
30 views

run-at-time in the future only

I want to capture a journal entry several times a day. Here was my initial solution: (setq org-capture-templates '(("w" "Weekly" item (file+olp+...
0
votes
1answer
21 views

switch-to-buffer from org mode code block

Evaluating a code block containing (switch-to-buffer "test-buffer") does not display test-buffer. It creates the buffer, but it does not switch to it. #+BEGIN_SRC emacs-lisp (switch-to-...
0
votes
1answer
24 views

What is the runtime complexity of using beginning-of-line?

I did a test where going to from the end to the beginning of a 50 million length line happens instantly when using beginning-of-line. I wonder if this is because it is a C primitive or because Emacs ...
0
votes
0answers
27 views

Limit property entry by type or regular expression

It is possible to get Org to limit the values you can enter for a property by using the special _ALL property. For example, if I want to limit the CONDITION property I could use: #+PROPERTY: ...
0
votes
1answer
58 views

How to stop ido-find-file/ido-switch-buffer prioritising the current buffer/file?

For example, if I have a Test.cpp and a Test.h and one of them is open, ido-find-file will often suggest the already-open one first if I type "Test". Likewise when both are open and the current buffer ...
0
votes
1answer
23 views

Error in newly installed magit -head branch header wrong type argument

I just installed the magit package in emacs 26.3 (using CentOS 7 OS). When I start it with M-x magit, I get the error below. It works fine for me in an older installation, and the only difference I ...
0
votes
1answer
23 views

Magit + Forge: unable to create a token

I am trying to set up Forge on Doom Emacs to work with Magit on a GitHub repository (I am running Linux Manjaro). Running M-x forge-pull for the first time and following the procedure to create a new ...
0
votes
0answers
7 views

Excluding frames from handout when exporting to LaTeX Beamer

I would like to exclude certain slides when I export my document as a handout using the corresponding option #+LaTeX_CLASS_OPTIONS: [handout]. I know what I need to arrive at in LaTeX to achieve this: ...
0
votes
1answer
23 views

Pandas data frame as table

I'm enjoying learning org-babel to write literate documents and am trying to include summary tables produced by Pandas describe(). I found an old thread with some answers but none of the provided ...
0
votes
0answers
17 views

Use iconv directly on the selected region to convert codes

I copied and pasted the C code as: int main(void) {    statements    return 0; } to org's babel code block, when strike C-c C-c, it report error: /tmp/babel-uaYVXU/C-src-Pd1SZs.c:11:6: error: stray ‘...
6
votes
2answers
484 views

xclip hangs shell-command

I like to use the xclip utility to capture the output of commands on the clipboard. However, when I try to use it with shell-command it seems to hang. In a "normal" shell I can run a command such as ...
3
votes
2answers
245 views

Cargo-process does not accept user input

Using the Emacs mode for Cargo, I'm able to build and run Rust code inside Emacs. However, the terminal that opens when executing cargo-process-run does not accept user input. For example, when ...
0
votes
0answers
13 views

No match for ess-rdired

I'm not able to invoke the rdired-buffer when typing M-x ess-rdired, I get a "no match"-message. I'm also not able to find the function ess-rdired in the documentation (via C-h f). Any idea ...
2
votes
1answer
1k views

Reloading .Xresources colors on the fly

I use pywal on Linux which is really cool and works on everything I use except for Firefox (gotta tinker with it) and (GTK) Emacs. For Emacs the author recommends this which is awesome but requires me ...
0
votes
1answer
40 views

How to do date calculations in org-mode tables

I would like to enter a date (as active or inactive timestamps) in column 1 ( eg [2020-02-02 Sun] ) and a number of days in column 2 ( eg as 5d for 5 days) and then let something like: #+TBLFM: $3=$1+...
0
votes
0answers
16 views

Script to select first-error to next-error as region and output file for each make run in SUBDIR variable

I want to write a emacs script that could automatically run make in multiple directories either using bash's for f in [dir] or within a SUBDIR variable defined in a top level Makefile. This would be ...
1
vote
3answers
50 views

Can I Jump to bookmark using a pattern?

Using Spacemacs, if I SPC f r to search for recent files I am prompted for a pattern. I can enter e.g. a value of our which will match a file named Journal.org. However if I do C-x r b to jump to a ...
1
vote
1answer
36 views

How can I set and jump to file-specific Bookmark+ bookmarks

I am trying to use Bookmark+ because I would like the ability to create bookmarks with the same name that jump to locations in different files. E.g. I have files foo and bar open in emacs. I would ...
2
votes
1answer
76 views

How can I make `setf` work with `plist-get`?

There's no built-in setter for plist-get. Example: (let ((pl '(:what (one)))) (push 'two (plist-get pl :what)) pl) Error: let*: Symbol’s function definition is void: \(setf\ plist-get\) How can I ...
1
vote
1answer
44 views

How to count number of times a recurring task is marked done after logging is enabled?

I had a task in my org file for which I wanted to keep track of the number of times a task is marked as DONE when it's recurring. I am logging my change to the drawer and thus it should be possible to ...
0
votes
2answers
33 views

how to make emacs follow links to files outside of org mode?

I'd like to embed a link to a file in say Python code, is there a way to let emacs know to look for org style links outside of org files? Or is there a better way of achieving this? Cheers
12
votes
4answers
2k views

Org-Mode: How to create an “org mode markup” keybinding?

I know I can use *bold*, /italic/, _underline_, =verbatim=, ~code~, and +strike-through+ to apply markup to text in org-mode. But how do I create key bindings for applying these changes to a region of ...
0
votes
1answer
42 views

Issues With org-ql and Searching Based On Property Inheritence

I would like to be able to search for all TODO's with a property of FEATURE_NUM, and that property is inherited in my TODO's. Here's what I have in my init.el to make that property inheritable: (...
0
votes
0answers
39 views

Python : name '__file__' is not defined

So as you can see, in my terminal, I was able to execute the file without error, but once I tried from the python shell, whether in the terminal or the one integrated in Emacs, there is an error, it ...
7
votes
4answers
2k views

Get pandas data-frame as a table in org-babel

In the following example, I create a very simple pandas DataFrame and export results verbatim: #+BEGIN_SRC python :exports both :results verbatim :return test import pandas as pd test = pd.DataFrame({...
4
votes
0answers
772 views

How to debug C++ (dap-mode + LLDB or GDB)

I want to use dap-mode to debug a C++ code. Until now I followed instructions dap-mode (LLDB) and lldb-vscode. I further enabled the mode and UI via (dap-mode 1) (dap-ui-mode 1) When I execute dap-...
0
votes
1answer
77 views

Attaching files in mu4e from the clipboard

I use mu4e for email. I can attach a file to a new message with drag-and-drop or with dired (as in these directions from the manual). I would like to code the same behavior as Mail: in the Finder, I ...
1
vote
1answer
25 views

Specify precision using calc in org mode spreadsheets

According to the org mode documentation for calc syntax you can append printf formatters to specify the number of decimal places to display ‘$1+$2;%.2f’ Same, format result to two decimals. Is there a ...
1
vote
1answer
58 views

Git Texinfo indices missing

I have installed the official Git documentation in Texinfo format on my computer and for Emacs. But when I try to search for something with I in the info buffer (C-h-i d m git) it reports no indices. ...
0
votes
0answers
20 views

org-set-effort fast effort selection?

I wonder if there is any easy way to configure effort selection dialogue to allow selecting effort value from the list using single key. Currently I have configured Effort_ALL in the following way: (...
0
votes
1answer
28 views

How to disable specific flycheck-warning messages in LaTeX-mode?

Currenty I am on LaTeX-mode-hook using flycheck. (setq LaTeX-item-indent 0) (add-hook 'LaTeX-mode-hook 'turn-on-auto-fill) (add-hook 'LaTeX-mode-hook 'hl-todo-mode) (require 'tex) (add-hook 'LaTeX-...
0
votes
0answers
6 views

Can I make projectile open a default file when I switch to a project?

I'm using helm-projectile in spacemacs. SPCpp runs helm-projectile-switch-project, which gives me a helm completion buffer for projectile projects. When I choose a project and hit enter, I then get a ...
1
vote
1answer
61 views

Where is `personal dictionary` for `ispell` located?

C-h v ispell-personal-dictionary shows nil. Its docstring says: Documentation: File name of your personal spelling dictionary, or nil. If nil, the default personal dictionary for your spelling ...
0
votes
1answer
24 views

Custom agenda view based on effort estimates

I have currently a very simple custom agenda view, which displays a daily view, important tasks (those tasks with priority A), and pending tasks (those tasks whose todo keyword is WAITING). I would ...
0
votes
0answers
23 views

How do I reload config in other instances of emacs?

Say, I changed ~/.emacs, but I have another instances of emacs running. I believe unless I do something, they might change the config (because they have a stale notion of its contents), which in turn ...
0
votes
0answers
19 views

debugging c++ code with dap-mode in Emacs does not display std::variables (e.g., vector, map, etc) correctly. Any idea to solve this problem?

When I debug c++ code in dap-mode with Emacs, the std::variables, such as vector and map, always have values, [0]: std, shown in the local variable area. Does anybody know what is going on? I am on ...
1
vote
1answer
40 views

How to code a command to `write-region` to a particular file?

I have a system that I am not allowed permissions to install software but need to copy text from the remote server to the host computer's system clipboard. Because I can't install xclip or xsel and I ...
0
votes
1answer
33 views

Changing text size doesn't work on all fonts in org-mode

I have the following in my config: ;; set a non programming font for text (when (member "Lucida Sans Unicode" (font-family-list)) (set-face-attribute 'variable-pitch nil :font "...
0
votes
1answer
19 views

Can I navigate Bookmark+ bookmarks like I can with e.g. helm-bookmark?

I am experimenting with Bookmark+ and would like to be able to navigate to a bookmark using a similar workflow to that which I currently use to navigate bookmarks. For example, previously in order to ...
0
votes
1answer
21 views

Display Δ in the *Shell Command Output* Buffer

I have a shell command I'm running from Emacs that has a Δ character in its output. How can I configure the *Shell Command Output* buffer to display UTF-8 by default? edit: There could also be ...

15 30 50 per page
1
2 3 4 5
388