All Questions
26,280
questions
0
votes
0
answers
8
views
GnuTLS not found in MSYS2 build - fixable?
I installed emacs 29.1 through git for Windows SDK which installs a subset of MSYS2 with the package manager pacman.
pacman -S mingw-w64-x86_64-emacs
When I start this emacs up, it gives this message:...
0
votes
1
answer
16
views
Using TAB to flip between two windows
I have set TAB to flip between two windows using:-
(global-set-key (kbd "TAB") 'other-window)
This works sometimes, but not always. How should I define it?
0
votes
0
answers
10
views
run check-parens or similar when saving or tangling literate configuration?
I use org babel to load my literate configuration file "config.org". But sometimes when editing that org file, I introduce some error -- say, a missed parenthesis -- and then restart emacs. ...
0
votes
1
answer
13
views
How to remove padding for display math equations when `org-export-preserve-breaks t`?
When the variable org-export-preserve-breaks is t, the org contents...
text
\[
a + b + c
\]
text
gets exported to LaTeX as...
text\\[0pt]
\[
a + b + c
\]\\[0pt]
Text\\[0pt]
This adds a lot of extra ...
0
votes
2
answers
34
views
so-long not detecting a long line in compilation output
I am trying to use so-long to improve the performance of compilation-mode when the compiler output contains very long lines (1000s of characters).
When the compilation runs and I M-x so-long-minor-...
0
votes
1
answer
27
views
Bind LEFT to goto parent directory in dired mode
How do I bind the LEFT key to go to parent directory in dired mode?
I tried
(define-key dired-mode-map (kbd "<left>") #'dired-up-directory)
but that didn't work.
4
votes
2
answers
342
views
Filter a list of strings to create a separate list of those that match a given prefix
If I have a list, (“apple” “pear” “grape” “apricot”) how do I create a new list with elements starting with the letter “a”? The new list will be: (“apple” “apricot”).
0
votes
1
answer
24
views
Expand specific org-mode table column with headings
Consider an org-mode file like so:
#+NAME: foobar
| | Alice | Bob | Charlie |
| Foo | 11 | 12 | 13 |
| Bar | 21 | 22 | 23 |
| Baz | 31 | 32 | 33 |
* Alice
- Works at ...
0
votes
1
answer
21
views
How can I trigger `browse-url-at-point` using C-c C-o on URLs within programs?
C-cC-o nicely opens the URL under the point in Emacs org-mode.
goto-address-mode can likewise be added as a minor mode to a program's major mode,
(add-hook 'python-mode-hook #'goto-address-mode)
That ...
0
votes
1
answer
27
views
how to make the tabs from tab-bar-mode always stay on the same line?
I don't know if there is a better title, but this is the one that's most verbose (a less verbose one would have been "how to make the tabs overflow to the left side" or something along those ...
0
votes
0
answers
9
views
Gnus: show original article when replying
When I hit r (or f/F/R) in a gnus summary, I get a fullscreen view of the unsent Message. Is there some builtin way to put the new Message buffer in the window that had the Summary buffer, so I can ...
0
votes
0
answers
21
views
How to set a buffer local variable (e.g. fill-column) for one specific .org file? [duplicate]
I use fill-column 80 for the majority of my files. Howover, I have a .org with a table that is slightly wider than 80 columns. I'd like to automatically set (setq fill-column 100) for that file only, ...
0
votes
1
answer
68
views
How to prevent tabs from shrinking when using many tabs with tab-bar-mode?
I'm using tab-bar-mode in Emacs and noticed that, if there are a lot of tabs, then each tab shrink to accommodate the newer tabs.
What I want to do instead is for the tabs to remain on a fixed width/...
1
vote
1
answer
71
views
Why does BACKSPACE generate C-h?
When running emacs (v29.1) -nw on a ThinkPad X61 under FreeBSD 13.2, pressing Backspace generates C-h. The key is not bound to anything.
Running C-h k BACKSPACE does not show DEL but C-h-h. Entering ...
0
votes
0
answers
17
views
How can i load selected or checked items in a new subheader in org-mode? [closed]
I'm looking for the implementation in elisp or another method.
Let's say I have the following items
Header 1
Subheader 1
[] Item 1
[x] item 2
[] Item 3
[x] Item 4
Header 2
Clicked Items
Item 2
Item 4
...
0
votes
1
answer
30
views
How can I org-store-link when ssh sudo hopping?
I open the file like this, with hopping:
C-x C-f /ssh:b0ef@ximian|sudo:ximian:/etc/nixos/configuration.nix RET
If I call org-store link, I get this:
[[file:/sudo:root@ximian:/etc/nixos/configuration....
0
votes
0
answers
28
views
How to enable evil-mode in Portacle?
I want to start learning Common Lisp and I want to use portacle for an IDE-like experience.
As I understand, portacle doesn't provide a normal init.el configuration file.
Instead, it uses a file in ...
0
votes
0
answers
8
views
don't show images in html or local links in pdf-latex
I want to transfer folders with documents with Syncthing to the Android tablet, the documentation is made in orgmode and I export to PDF or HTML. But they don't resolve local addresses in the tablet; ...
0
votes
0
answers
21
views
How to make LaTeX in org-msg e-mails look nice?
I just want to send nice-looking e-mails like this
This e-mail is achieved by using Apple Mail, LaTeXiT and a bit of hand-waving. However, in org-msg mode I can by default with dvipng/imagemagick ...
0
votes
0
answers
9
views
How can I enable shell-command in Termux build of Emacs?
Installation of emacs on termux (from f-droid) does not support shell-command. Does this require a port of shell access code to termux, or is it some sort of option that I would be able to activate?
0
votes
0
answers
13
views
Magit: How turn SHA1's in commit messages into links?
Is there a way in magit to turn SHA1 hashes in the commit-message body into a clickable link? (currently it's necessary to click on the SHA1 and press Enter).
Related to: How to follow commit hashes ...
0
votes
0
answers
19
views
Use an org-mode code block to execute other code blocks
I want to use a code block to execute other code blocks with a given language. For example, in my document I want to validate every HTML block using the W3 validator. Currently I do it as follows.
...
1
vote
1
answer
37
views
What is the init.el in doom emacs?
I recently installed doom emacs and really like how much it is developed.
The problem I encounter is the following:
I want to add LSP-support for emacs. On the website, it is illustrated how I can ...
0
votes
0
answers
33
views
Buffers sporadically not updating
I'm having a very difficult time diagnosing this problem. Essentially, sometimes a buffer will not update without user interaction. For example, with a terminal buffer (the shell/term/package used ...
0
votes
0
answers
12
views
xref-find-definition goes to constructed init.el by doom emacs
I think this is doom emacs specific problem.
Doom collects autoload functions into an ./local/etc/@/init.el file
And when I do M-. (which is mapped to doom's +lookup/definition and in turn it tries ...
0
votes
0
answers
8
views
Combined search: notmuch mail, org-mode docs, and filesystem locate?
I often look for information that could be either in some org-mode document, in an old email, or somewhere in the file system (and probably other places). Now I can use org-search, notmuch-search, ...
0
votes
0
answers
5
views
How/Where do I put tags/keywords so that citar will find them?
I started using citar to manage my references.
Set up bibtex-library, folder for pdf's as well as notes.
Everything seems to work fine.
In the documentation of citar is says that the UI will show tags/...
0
votes
0
answers
60
views
Readability of Camel Case
I am writing Latex Style Files and want to improve the appearance of Camel Case Variables and Functions. What kind of elisp function can I write to enhance readability.
Have been directed to glasses....
0
votes
1
answer
26
views
How to list a source file's "structure" (e.g. list all the methods) with eglot/lsp?
There is a similar question here: https://superuser.com/questions/629090/emacs-displaying-list-of-subroutines-functions-classes-in-a-source-file
But it was from 2013, way before LSP and eglot became ...
0
votes
1
answer
37
views
lsp function doesn't work
I installed lsp-mode and using pyright as its server. However, most of the lsp function wouldn't work. For example, If I do M-x lsp-find-definition, it'll return error message "Symbol's value as ...
0
votes
0
answers
12
views
Single stepping through shell script
Is there an emacs package that would enable single stepping through a shell script, or some facility for setting breakpoints or viewing variables?
0
votes
0
answers
8
views
how do i customize font faces and sizes in neotree buffer
I am trying to find a good folder view package to work alongside projectile and magit, I tried treemacs for a while and did not find it to my liking, I am now trying neotree. Neotree seems to be ...
0
votes
0
answers
12
views
Getting diary-mail-entries to work with mu4e in a script
I'm trying to start using the Emacs diary to remind me of birthdays and such using emails, but I've configured mu4e as my mail client, so I wrote an Emacs script using (diary-mail-entries) that I want ...
0
votes
1
answer
10
views
browse-url: replace \% with % in the url argument
Short version: how can I make sure that \% strings are replaced by %, in the url argument of browse-url?
Long version:
In LaTeX, URLs that appear in \url{} macros need to have any % character escaped ...
0
votes
1
answer
12
views
shuffling between a set of open source files
What would be the easiest way of shuffling between a few source files, usually of the same type, say .py or .js. C-x C-b and selecting gets a little tedious once your open buffers list grows. I ...
0
votes
0
answers
7
views
How to SHIFT-RET to open link in a new tab while preserving RET behavior in org-mode?
In org-mode
I want to open link in a new tab when I press Shift-RET.
I'm currently using RET to open link.
I tried to use (setf (cdr (assoc 'file org-link-frame-setup)) 'find-file-other-tab).
That ...
0
votes
2
answers
58
views
How to add heading in this format
I use org mode for many things including a Getting things done file and daily I am adding many headings, mostly in the format:
* TODO [#1] "Heading text here, to be typed in by me"
SCHEDULED:...
1
vote
1
answer
40
views
How to add numbers to all lines matching a certain regex?
I have a Markdown file like this:
# Title
## My Theme
Pellentesque dapibus suscipit ligula.
### Mine is yours
Donec posuere augue in quam.
## Your Theme
* Suspendisse potenti.
* Aenean in sem ac ...
1
vote
2
answers
31
views
How to install common lisp with emacs and SLIME when the slime-helper.el is not automatically generated?
I want to get started with Common Lisp and I follow this guide to install it on my arch linux machine. However, this call fails:
(load (expand-file-name "~/.quicklisp/slime-helper.el"))
......
0
votes
0
answers
29
views
How to fix "cd: Wrong type argument: stringp, nil" error?
I use org-babel-tangle to generate latex documents from org files.
These org files have the following first line:
#+PROPERTY: header-args :latex :comments org :tangle PATH/FILE_NAME.tex
I built a ...
0
votes
0
answers
5
views
Weird behaviour on emacs with running django server in terminal
something weird is going on in my 'emacs-IDE'. I am editing some javascript files in a django project using spacemacs. Some tools I use are treemacs and lsp-mode.
In order to test my code I call up a ...
2
votes
0
answers
16
views
Stop producing excess whitespace in .png files from TikZ code
I've been using Org src blocks like the following to generate .png images of TikZ diagrams.
#+name: tikz-functions
#+header: :file tikz-functions.png
#+header: :imagemagick t :iminoptions -density 800
...
0
votes
0
answers
18
views
How can I make `fill-paragraph` on selected text respect indentation in AUCTeX?
Using fill-paragraph in AUCTeX normally respects the given indentation. However, if I use fill-paragraph on a selection, only the first line will be indented, the other lines won't. Is there a way to ...
0
votes
0
answers
9
views
Follow symbolic links in alternative org-roam directory
I use org-roam to take notes. I have two org-roam directories. The alternative one has a .dir-locals.el file where I set the value of org-roam-directory and org-roam-db-location with the path to the ...
1
vote
2
answers
55
views
How to tangle code blocks from an org file, compile the output, and open the result, with a single command?
I use org-babel-tangle to generate lilypond and latex documents from org files.
These org files have the following first line:
#+PROPERTY: header-args :LANG :comments org :tangle PATH/FILE_NAME.EXT
...
0
votes
0
answers
16
views
How to add a timestamp directly from the 'todo'-type agenda buffer
My typical agenda view is a global todo agenda. I would like to add timestamps directly to a header from this view. It is possible with deadline and schedule but not for timestamps.
I have tried the ...
0
votes
1
answer
28
views
Switch between 2 windows?
I'm JUST starting out emacs. On the right half of the screen I have the interpreter and on the left half of the screen I have my code. I want to switch between these 2 using keyboard only (shortcuts). ...
0
votes
1
answer
14
views
Match multiple machines with criteria in connection-local-criteria-alist
Background
The actual problem I'm trying to solve is that Tramp does not use the PATH of the remote machine it's SSH-ing to. One workaround is to from the client set PATH depending on which machine ...
0
votes
1
answer
13
views
additional PDFs in helm-bibtex
I daily use helm-bibtex to manage my citations / bibliography and add in the file field the path to the PDF of the related article.
I've read it was possible to add supplementary files (additional ...
5
votes
1
answer
93
views
Can Markdown mode help with generating the 2nd line in a Markdown table?
When I write a table like
| Syntax | Description | More columns ... |
| ----------- | ----------- | ---------------- |
| Header | Title | . |
| Paragraph | Text ...