All Questions

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

display documentation and available methods for java

Is there a way to configure emacs so that it displays available methods and documentation when typing "." on an object. Something similar to company-racer for rust as described In this post ...
Hackerman's user avatar
0 votes
0 answers
50 views

Build org agenda based on org-roam tags

I need to populate my org-agenda with items collected from org-roam nodes based on their TAGS (i.e. nodes tagged as "project" or "payments"), but I definitely lack the necessary ...
parole.sprekate's user avatar
3 votes
3 answers
153 views

Binding a key in another package's yet undefined map in use-package?

I'm using use-package for my configuration in init.el. How can I bind a key to a map that has not yet been defined? As a specific example, I'm using the following configuration of (use-package latex-...
Henry DeYoung's user avatar
0 votes
1 answer
23 views

Programmatically call org-capture w/ specific template

Is it possible to use emacs-lisp to call org-capture with some template being preselected? My use case is: I need an org-mode External link of ‘elisp’ type that triggers a specific org-capture ...
Nikita Fedyashev's user avatar
0 votes
0 answers
32 views

How can I manage my passwords in org-mode?

I've found two projects which deals with managing passwords in org-mode, but they seem abandoned. I'm also using UNIX PASS with Emacs, but I want rather to manage my passwords in org-mode and then ...
Jason Hunter's user avatar
0 votes
0 answers
57 views

How to customize the appearance of eglot's inlay hint?

eglot's inlay hints are extremely close to the actual code, it makes the code almost unreadable. For example: The name of field is input, but it looks like inputString! Is it possible to customize ...
Lai Yu-Hsuan's user avatar
0 votes
0 answers
16 views

resize font in ivy-posframe

i'm tryinng to set the font in ivy-posframe and no result. i have try code adapt to another cases, like: (defun text-scale-twice ()(interactive)(progn(text-scale-adjust 0)(text-scale-decrease 2))) (...
Levo's user avatar
  • 47
0 votes
0 answers
74 views

What is the point of Org-agenda?

I'm very new to GNU Emacs. The first thing I need is to schedule deadlines for events. As far as I understand, Org is at the core an outliner, so why come up with an Org agenda rather than implement, ...
user41683's user avatar
0 votes
0 answers
29 views

How do I trim spaces and indentations after traversing a DOM tree?

The following traverse the dom tree and provide an iterative custom formatting. However during the formatting, there are empty spaces and indentations which I needed to trim. ;;; This is where the ...
alexander's user avatar
  • 133
0 votes
0 answers
40 views

dired-sidebar not working

My dired-sidebar no longer works. For the commands dired-sidebar-toggle-sidebar and dired-sidebar-show-sidebar they both give: Wrong type argument: stringp, (Git "~/") Anyone know the ...
user129393192's user avatar
2 votes
1 answer
52 views

AUCTeX: Some general macros/command missing from auto-completion/macro insertion

While further trying to set up a Latex environment in emacs I stumbled over a "problem" with macro-completion which I don't understand right now. When writing Latex code the usual way to ...
lukeflo's user avatar
  • 195
1 vote
2 answers
48 views

How to set "nojoinspaces" in evil mode

In vim, you can :set nojoinspaces to prevent J from adding a space when joining lines that end in a period. How do I set this in evil mode? I'm using Doom emacs, if that is relevant.
Otto Kaaij's user avatar
1 vote
1 answer
111 views

Function to replace strings from region and save result in kill-ring

I'm almost completely ignorant in elisp, but I'd like to have a function that does the following: Takes a string from (a) a region, if one is selected, or (b) user prompt, if a region is not selected....
pglpm's user avatar
  • 289
0 votes
1 answer
82 views

Why is my code indented differently in Emacs than in a Web browser?

Emacs displays the code snippet as shown below. <header> <nav> <ul> <li>About</li> <li>Code review</li> <li&...
gilaro's user avatar
  • 111
0 votes
1 answer
27 views

How can I write a function to modify the word before or after the cursor?

I have written the following function to shorten a string: (defun shorten-hash () "Shorten string (forward or backwards) to eight characters; particularly for shortening hashes" (...
Jake Ireland's user avatar
0 votes
1 answer
25 views

Why can I write one function to work on words before *and* after the cursor?

I have written the following function to shorten a string, which is useful particularly when shortening commit hashes: (defun shorten-hash () "Shorten string (forward or backwards) to eight ...
Jake Ireland's user avatar
0 votes
1 answer
41 views

Conversion from html to org-mode error: *** Eval error *** Wrong type argument: listp, " "

I tried to build a small converter which will traverse the dom-tree and output its org-mode equivalent but I faced a *** Eval error *** Wrong type argument: listp, " " error means the ...
alexander's user avatar
  • 133
0 votes
1 answer
44 views

Remove gray horizontal line between titlebar with material theme on Mac OS X

I show in the image below a screenshot using Emacs 29.1 on Mac OS X with the material theme and the https://github.com/d12frosted/homebrew-emacs-plus port. You can see that there's a gray line drawn ...
cdd's user avatar
  • 197
1 vote
1 answer
73 views

Add parsing of latex-style .el file to LaTeX-hook using AUCTeX

I did some online research (e.g. here) but couldn't figure out how to solve the following problem so far (of course, I might have overlooked something since the whole emacs community is new to me). ...
lukeflo's user avatar
  • 195
0 votes
1 answer
30 views

Different outputs from minor-mode depending on major-mode

My minor-mode is inserting text in the current buffer. I want the default format of the text to be different depending on what major-mode the buffer is in, and to allow the user to override this ...
pelle's user avatar
  • 1
0 votes
0 answers
39 views

Key sequences that are translated to ESC

I understand from the FAQ that Escape is supposed to be the same as C-[: https://www.gnu.org/software/emacs/manual/html_node/efaq/Basic-keys.html However, I could rebind C-[ without any problems ...
Alexander Praehauser's user avatar
0 votes
1 answer
25 views

How to make gdb show locals buffer in a different window?

Using gdb in emacs, gdb shows the source code to the right of the gdb prompt. According to the documentation, I can do M-x gdb-display-locals-buffer which displays the local variables. However, when I ...
Peter Petigru's user avatar
0 votes
1 answer
29 views

Hide org-mode nodes with priorities below a threshold

Is it possible to hide org-mode nodes with set priorities below a threshold? My use case is: I have a bunch of large org-mode files with lots of nodes in each of them, complex nested hierarchies and I ...
Nikita Fedyashev's user avatar
0 votes
1 answer
102 views

How to set rust-analyzer.linkedProjects with eglot?

My project structure is like this: -- Project Root - .git - rusttools - Cargo.toml - src - main.rs When I open main.rs in Emacs, eglot complains: [eglot] Server reports (type=1): ...
Lai Yu-Hsuan's user avatar
1 vote
1 answer
85 views

How to save a register with a dired buffer?

I'm new to Emacs. I saw that you could have registers with special files. I really like that feature, and I was wondering if I could get the same functionality with a Dired buffer. For example, the ...
Peter Petigru's user avatar
0 votes
1 answer
53 views

How to use multiple tree-sitter parsers in buffer

How does one use local treesit parsers/multiple parsers to fontify different regions in a buffer? I haven't been able to find any tree-sitter modes that are currently using local parsers to see how ...
Rorschach's user avatar
  • 125
0 votes
2 answers
34 views

How to troubleshoot: `other-buffer` suddenly begins to ignore some buffers

With increasing frequency, my Emacs session's function other-buffer begins to malfunction. Specifically, at some point, and for no reason I can discern, other-buffer stops "seeing" some ...
kjo's user avatar
  • 3,207
2 votes
2 answers
99 views

Rebinding RET without rebinding <kp-enter>

My Emacs translates C-m as RET like here: https://stackoverflow.com/questions/7235381/unbind-c-m-from-ret. I'd like to use C-m though, and I have a multilevel keyboard-layout in which <kp-enter> ...
Alexander Praehauser's user avatar
0 votes
0 answers
46 views

emacs jupyter gives *invalid read syntax* error in org mode

am trying to execute a simple code block in org mode * a simple trial #+begin_src jupyter :session py :async no x = 'foo' y = 'xbar' x + ' ' + y #+end_src I get the following error Code block ...
RoyM's user avatar
  • 123
2 votes
1 answer
74 views

Doom Emacs does not correctly render the colors on ssh terminal

What happened? This is a problem that I was never able to solve and I always try to switch on another editor when I am coding on my remote machine. However, I think that I solution should be somewhere ...
vincenzopalazzo's user avatar
3 votes
1 answer
118 views

dired - view file in other window?

Is there some way to have two windows open with a dired buffer in one and a file view of current file in the other? v loads the file into the dired buffer. o loads the file into the other window but ...
balanga's user avatar
  • 115
0 votes
0 answers
29 views

install pdf-tools without sudo

I have installed (a working version of (doom)) Emacs on a remote linux cluster (via conda) for which I do not have sudo access, my question is: how can I install pdf-tools? Thanks Assume I can install ...
georg's user avatar
  • 127
0 votes
1 answer
39 views

Indentation not being followed on TypeScript/TSX

I have problem with the indentation in JSX/TSX files, I'm not sure how to describe it but the thing is that it does not follow the indentation on the file, please take a look the gif below: After ...
Hugo's user avatar
  • 111
0 votes
0 answers
21 views

Modify spell-fu to exclude words starting with a capital letter that are not at the start of a sentence

I am using Doom Emacs with the spell-fu package for spellchecking. I would like to modify spell-fu to ignore words that start with a capital letter and are not at the start of a sentence. For example, ...
harabat's user avatar
  • 31
0 votes
1 answer
48 views

Changing key binding definitions

I read somewhere that emacs v29.1 has changed the way that you can define key bindings... ie previously you would write:- (global-set-key (kbd "<f2>") 'save-buffer) now you can write:-...
balanga's user avatar
  • 115
1 vote
0 answers
42 views

??? showing in Agenda instead of file name

I have several .org file and typically have them all open in Emacs at the same time. Recently, my agenda started showing one of those file names as "???" instead of the actual filename--...
Tom's user avatar
  • 11
1 vote
0 answers
44 views

Programmatically use org-tags-view to search in current subtree

I am looking for a way to programmatically search for headings in the current subtree. More specifically, I have a vocabulary file, in which I store words I need to learn. Each word is a subtree in ...
Zelphir Kaltstahl's user avatar
0 votes
0 answers
63 views

Executing commands from a buffer

Following instructions here:- https://www.emacswiki.org/emacs/ExecuteExternalCommand which says: Using the whole buffer If you are programming using an interpreted language, such as Perl or Python, ...
balanga's user avatar
  • 115
1 vote
2 answers
45 views

How can bookmarks file be synced if it's not constantly reloaded?

If I create a bookmark on one platform, then try to use that bookmark on another platform, and if the bookmarks file isn't reloaded, then that new bookmark isn't available. How can I make sure my ...
Jason Hunter's user avatar
0 votes
0 answers
13 views

How to define a new org-babel-execute function for a new major mode?

I want to be able to run code in org mode using the major mode defined in the nand2tetris package. How can I write an org-babel-execute function to do this?
user41177's user avatar
  • 121
1 vote
1 answer
37 views

Use 'mapcar' to build a hooks list; "wrong-type-argument listp lambda"

How can I write a mapping (e.g. a mapcar expression) to build the list for a use-package :hook clause? I'm attempting to build the list in this :hook expression: (use-package eglot :hook ( (...
bignose's user avatar
  • 639
0 votes
1 answer
42 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 ...
JeanPierre's user avatar
  • 7,363
1 vote
1 answer
65 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 ...
balanga's user avatar
  • 115
0 votes
0 answers
15 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 ...
Daniel Krajnik's user avatar
0 votes
1 answer
36 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?;) ...
Jason Hunter's user avatar
1 vote
0 answers
55 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?
balanga's user avatar
  • 115
3 votes
2 answers
384 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 ...
Jake Ireland's user avatar
0 votes
1 answer
23 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-...
Jake Ireland's user avatar
0 votes
1 answer
48 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. ...
Alexander Praehauser's user avatar
0 votes
1 answer
30 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...)` ...
Jake Ireland's user avatar

15 30 50 per page
1
4 5
6
7 8
532