# All Questions

23,976 questions
Filter by
Sorted by
Tagged with
1 vote
516 views

### Getting Emacs lsp-mode to work with this matlab-langserver

I am trying to get this Matlab language server to work with lsp-mode. Following the instructions in lsp-mode's github page, I inserted the following in my init.el: (use-package lsp-mode :ensure t ...
620 views

### Help with auto-complete in Windows/MinGW64

I‘ve download the “LLVM source code (.sig)” and “Clang source code (.sig)” and build Clang on Windows/MinGW. After that, I’ve install emacs (25.1) and the following three packages from melpa: irony ...
31 views

### Matching ple in middle of word and replacing with letter p

The following function replaces character sequences for the cases of prefixes and suffixes. I would also like to handle the case of matches that occur medially within a word (e.g. insert p' for ...
133 views

### How do I mark emails as read in notmuch?

This feels like a super basic question, but it's got me stumped. I'm using mbsync + notmuch to collect my email locally, both from a Google mail account in one case and from an Exchange account in ...
6 views

### Given a melpa/elpa package, find other elpa/melpa libraries that depend on it

I am trying to use oauth2.el for some local shenanigans and would like to see how others are using it. Is there a way I can query elpa/melpa for dependencies to this (or any other package)?
478 views

### Calling emacsclient from ansi-term makes emacsclient hang, how do I get around this?

Sometimes I use ansi-term in emacsclient instead of directly using my shell. When I do this, it is not an infrequent occurrence that I forget where I am and call emacsclient someFile, which freezes ...
303 views

### Behavior of indentation in Org

I use Emacs 27.2 and Org 9.4.6. Since a very recent update of Org, I noticed a strange change in the behavior of indentation. In my init file, I have set the variable org-adapt-indentation to '...
10 views

### Turn directory to file in dired

I often make the mistake of creating a directory instead of a file in Dired (by hitting +). I then have to delete it and recreate the file, with the same name. Sometimes, I tried to edit the d file ...
18 views

### How can I preview image in html file?

Is there a package to preview an image inserted in the html tag <img src="path-to-image"/> when hovering the tag with the mouse ?
12 views

### How to use a Template for creating YaSnippet snippets

I want to have a way, to efficiently create new YaSnippet-snippets. YaSnippet has the functionality, that via pressing C-c C-n one can create a new snippet. However, the empty new snippet is very ...
12 views

### Updating closed drawers on save safely

I have a function I wrote that edits a file's PROPERTIES drawer on save and, if it finds the "MODIFIED" field it updates it with the current time. This works great as long as the drawer is ...
10 views

### Can't remap left windows key to super in Windows 10

OS: Windows 10 Pro, version 1909. GNU Emacs 27.2 (build 1, x86_64-w64-mingw32) of 2021-03-26. On the keyboard I have a Windows key on the left between fn and Alt. I open Emacs, then click: Ctrl+h k ...
1 vote
19 views

### Simple keyboard macro to jump to \begin{document} regardless of current location in file

If you are in the preamble of a TeX document you can do C-s \begin{document} or C-r \begin{document} if you are in the body of the document. It would useful to have a simple, all-purpose macro (say, M-...
27 views

### Can I change default location of .emacs.d folder?

Emacs 28.1 By default folder .emacs.d location on my home folder. Smt like this: /home/alex/.emacs.d/ But I need to change to another location to e.g: /home/alexeij/dev/.emacs.d/ Is it possible?
44 views

### A one-line org code block

I want to have python snippets in org thus: #+begin_PYT def foo(x): # Some python code #+end_PYT where PYT is a latex environment for python code using (say) listings. The problem is that while org ...
511 views

### edit a file on remote server using an existing session(by clone it)

I am able to clone a session after configure the configure file under .ssh cat .ssh/config host * ControlMaster auto ControlPath ~/.ssh/master-%r@%h:%p ServerAliveInterval 60 After I connect to the ...
711 views

### How can I get :LOGBOOK: into Column View?

The items in my org-mode file will have a number of properties relating to data points that I need to capture. In conjunction with this, I'd like to continue using C-c C-z to log notes tracking ...
1 vote
2k views

### Making pdf-tools work after successful compiling on mac os x

After installing the required dependencies with homebrew, I was able to compile pdf-tools . But I cannot make it work (I cannot see the pdf on emacs after compiling) I would like to know if somebody ...
249 views

### How to set web-mode to use single-line comment style instead of multi-line for JavaScript

When commenting C-style code like C++, JavaScript etc., I use single-line comments to be able to uncomment a previously commented region selectively, i.e // This // is // a single-line style // ...
1 vote
524 views

### How to sort in Dired by size and extension and have directories listed first and full date/time details

I'm using the excelent dired-fixups.el by Dino Chiesa for sorting in Dired by size and extension (see here). The only gotcha is that I'd like to combine it with a fuller date/time description. Also, ...
1 vote
37 views

### Simple and fast way to show interactive functions associated with a package

I am using M-x protoc to show me the interactive functions provided by the package protoc. Is it possible to have a shortcut for displaying protoc related functions without having to write protoc TAB ...
36 views

### Replacing words using multiple rules

This function is supposed to replace matches with a shortened version using multiple rules rather than just a single one. For the word counter, coun gets replaced by k, resulting in the shortened ...
533 views

### Show Link Tooltip mouse over with keystroke

When I use mouse-over on an Link (thanks to Tobias) it shows an Image and text. When I used display-local-help the image disappeared (perhaps due to lack of space in the message area). I want to ...
25 views

### how to turn off special character?

I am pretty new to emacs. does anyone how to turn off special character, such as 渘 ? I tried to search online but no luck. emacs 28
1 vote
259 views

### Python-Repl issues with TRAMP Mode [windows->Linux]

I have an issue when using python-mode remotely through tramp. I'm trying to use the repl and pass a test function using C-c C-c, however this seems to create a local file at my own computer or ...
14 views

### How to: make speedbar just expand a directory while staying in current view, instead of 'opening' directory

I love using speedbar (specificall I use sr-speedbar) but I'm having a hard time configuring it to my liking. One thing I'd like to be able to do, is set it so that there's an "anchor" ...
1 vote
35 views

### How can I catch a block of text to be used in a replacement-part code?

I want to save a block of text in a variable and then do a replacement using that variable in the replacement part. For instance, suppose to do the following replacement: block_of_text ---> \...
1 vote
116 views

### Configure echo time for input of key-sequence prefix keys

I am writing latex code with AUCTEX. I very often highlight text in bold or italics. For instance, AUCTEX comes with the command C-c C-f C-e, wich can be used to emphasize text in an active marked ...
12 views

### How to make org-cite export multiple citations enclosed in one pair of brackets?

When I have multiple org-cite citations like this: As described by [cite:@ref1;@ref2;@ref3] My configuration exports with multiple bracketed numbers like this: As described by [1], [2], [3] But ...
15 views

### Emacs on MacOS 12.5+: Commands failed with 127

I recently started working at a company that mandates we all use MacOS. I have installed emacs and would like to use my config, which leverages visual-regexp-steroids.el, but I am receiving an OS ...
298 views

### org-sparse-tree on multiple keywords

I currently have a keyboard shortcut bound to C-c t that shows me all of the NEXTACTION items I have, no matter what headline level they're at. It works by using a kbd macro wherein I just typed C-c / ...
20 views

### Executing mit-scheme blocks in org-mode

Using doom emacs in my packages.el: (package! slime) (package! geiser) (package! geiser-mit) (package! scheme) in my config.el: (setq geiser-active-implementations '(mit)) (org-babel-do-load-...
73 views

### Printing coloured text in emacs mini-buffer and *Messages* buffer

I want to print coloured text in the minibuffer and in the Messages. Can this be done and how?
1 vote
548 views

### How Shall I Understand org-mode Habits Graph Colors?

The org-mode documentation has following to say about the colors in the habits graph: Blue: If the task was not to be done yet on that day. Green: If the task could have been done on that day. Yellow:...
36 views

### How to delete a hypenated word in emacs?

How am i able to delete a hypenated word in emacs? aoeu-aoeu test test for example. I know ESC-d, but it only deletes the first aoeu, but it should delete aoeu-aoeu
42 views

### Toggling off all settings in python and julia to get bare setup

since recently I am using LSP for python, tex and julia on macos with spacemacs develop. To some extend this is great, but it is something awefully slow using a gui... and it seems that it is not only ...
900 views

### Use hydra with evil motions

I'm trying to use a hydra to dispatch among a selection of motions. See this minimal example: (defhydra hydra/test (:color blue) "This is a test hydra" ("n" evil-next-line)) (evil-define-motion ...
19 views

### org-mode structure templates only someone works

I want to use structure templates with tab but only: <c <e <q <v work. (with emacs -Q no templates work) (emacs 27.1, org-mode 9.3; debian 11) my org-mode settings: (require 'org) (setq ...
72 views

### How to load python layer after direnv?

In order to have lsp-pyright load after pipenv I need pyright to load after direnv. However, appending after: direnv results in an error[0] How can I have pyright starting the workspace after direnv? ...
32 views

### Binding functions associated with package names to H-x

The following function constructed by @dalanicolai has been adapted in a way that allows a user to automatically select a function affix name galaxy, protoc or typex, which is then bound to H-x. What ...
10 views

### How to disable tree-sitter-hl-mode for org-mode/markdown-mode code blocks?

My tree-sitter setting is ;; Tree-sitter highlight ;; Base framework, syntax highlighting. (use-package tree-sitter :diminish (tree-sitter-mode) :hook ((after-init . global-tree-sitter-mode) ...
6k views

### How can I run an async process in the background without popping up a buffer?

I have defined some functions to run async background process using async-shell-command in my .emacs, but everytime I run the commands a new window (not frame) is created and the process' buffer is ...
1 vote
79 views

### Org mode evaluating propertized string removes properties

See the following code block: #+BEGIN_SRC emacs-lisp (setq s #("abc" 0 3 (face (:foreground "red")))) (pp s) #+END_SRC #+RESULTS: : #("abc" 0 3 : (face : (:foreground "red"))) which is as ...
34 views

### keep org-mode comments on export

I am drafting a document in org. Because I will have some coauthors, I will have to switch to LaTeX at some point. I am usually putting a very short description of the paragraph on top: # why do we ...
16 views

I am learning to use project-find-file. I know there are better alternatives in melpa, but I would like to learn the "out of the box" functionality. When I do project-find-file, start typing ...
227 views

I have set Emacs to alert me via a window 30 minutes before an appointment. This is working as expected. However, every three minutes thereafter, Emacs continues to alert me to the same appointment. ...
537 views

### org-mode: How can noweb handle a multiple line output

I have a code chunk in my document that I want to use as a list of patterns to search for with grep. If I were just writing a script without org-babel, I could write. a="ar er ir or ur" printf "...
5 views

### How can I emulate the eclipse jdt open type action in emacs lsp-java?

In eclipse jdt, there's the open-type command, which opens a window and you start typing the name of a type. While typing, the list of candidates are shown in that window is filtered dynamically and ...
466 views

### find-tag: Build a new TAGS file if it does not already exist

I prefer to use the older version of find-tag, instead of the xref library. I wrote a function to build the tag database, but I'm having trouble locating a good place to plug it in. The default ...