All Questions

6,280 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
592 views

How to use dap-mode with TypeScript?

https://github.com/emacs-lsp/dap-mode provides DAP debugging for various languages (along the same lines as LSP does for completion, formatting, etc). How can I use that to debug programs written in ...
Croad Langshan's user avatar
4 votes
0 answers
190 views

Org Export Throwing an Error

Forgive the (relative) newbie question here. My org export to LaTeX just started throwing this error after I upgraded to Emacs 29.0 Here is output from Org PDF LaTeX Output buffer: Latexmk: -pdflatex ...
msakkas's user avatar
  • 51
4 votes
0 answers
416 views

How to get the last project search results?

When searching in project with +default/search-project after opening a result. How do I get back to the previous search results? And ideally to the same position in the results list? The usecase: ...
Witek's user avatar
  • 375
4 votes
0 answers
674 views

How to exclude certain directories/files from `consult-git-grep` search?

I want to exlude certain files such as .gitignore in consult-git-grep search. consult-git-grep works find with following defualt setup: (setq consult-git-grep-args "git --no-pager grep -F -n --...
alper's user avatar
  • 1,400
4 votes
0 answers
485 views

Change CJK fonts in default fontset

Is there a way to change the CJK fonts used in the default fontset? Currently, when I open the HELLO file using C-h h, I see: Japanese (日本語) こんにちは / コンニチハ with charset japanese-jisx0208 and font ...
d125q's user avatar
  • 1,453
4 votes
0 answers
208 views

Styled components with polymode

Can I use polymode for styled components inside tsx or jsx files? For example: // MyComponent.tsx const x = 1; const y = 2; const myStyle = css` background-color: red; padding: ${x + y}; ...
Steve Molitor's user avatar
4 votes
0 answers
2k views

Emacs won’t access Documents directory on MacOS Big Sur

I am running Emacs 26.3 on MacOS 11.2.1 “Big Sur”. When I try to open the directory ~/Documents, it fails with the message “Listing directory failed but ‘access-file’ worked.” Emacs.app is given ...
Mikelis Bickis's user avatar
4 votes
0 answers
1k views

Pasting images into Org

I'd like to paste images from the system clipboard into an Org file. Emacs should write the clipboard content to a suitable file (likely an attachment) and insert a suitable link (see https://orgmode....
Nova's user avatar
  • 1,119
4 votes
0 answers
2k views

Emacs daemon does not load my init.el completely but plain emacs does

When I run emacs, everything is ok, my init.el is read. However, after starting a daemon (emacs --daemon), an emacsclient GUI frame (emacsclient -c) is not configured for the following setting: font ...
ali b's user avatar
  • 193
4 votes
0 answers
91 views

How do you force the width of a fallback font to be the same as the one of the main font, assuming monospace fonts?

I use Emacs with monospace fonts, and I would like all the characters to have the same width, which is the purpose of monospace fonts. The issue is that the main font may not support all the ...
vinc17's user avatar
  • 183
4 votes
1 answer
1k views

org-mode: Set maximum image width limit

Using org-image-actual-width will both downscale and upscale. I just want to downscale big images to fit the current width. Any ideas?
HappyFace's user avatar
  • 830
4 votes
0 answers
155 views

PDFView scroll line

I'm using <space> to scroll down in a pdf document that does not fit completely in a frame. However, this disrupts the reading flow as I need to find again the correct line that is now ...
mikmak's user avatar
  • 41
4 votes
0 answers
269 views

Python automatically add import statement

Is there a way to automatically add imports to python code within emacs? def f(x: str) -> List[str]: I want to be able to have my guess over "List" press a key binding and magically add ...
Att Righ's user avatar
  • 775
4 votes
0 answers
178 views

Which Lisp objects are byte-compiled?

A compiled program and a source code can be interpreted differently at runtime. The issue is that some Lisp objects should not be modified because of the byte-compilation. Emacs Lisp manual: 2.7 ...
user avatar
4 votes
2 answers
448 views

Is it possible to selectively disable syntax highlighting rules?

The context : GNU Emacs 26.1 working on Debian 10.3 currently editing YAML files (Ansible code) Here's how my code looks like : As you can see, the syntax highlighting is puzzled by the odd number ...
Httqm's user avatar
  • 151
4 votes
0 answers
89 views

Add a source reference to org blocks

During research, I often cite a passage from some website, a local document or org file. For context and later use, I always add the source reference after the block: * Public transport ** Bus Buses ...
Bas Peeters's user avatar
4 votes
0 answers
672 views

Use global & local org-mode TODO Keywords in a file

In org-mode, one can define a set of local TODO keywords with the "#+TODO" keyword, or sets can be defined globally with org-todo-keywords. It is also possible to define multiple sets that can be used ...
Digicrat's user avatar
  • 187
4 votes
0 answers
903 views

org mode, html export of LaTeX equations with tikz support

In my org-mode file I have some LaTeX equations using tikz and tikz-cd packages: #+TITLE: Mixing tikz and equations * An example \begin{equation*} \begin{tikzcd} A\arrow[yshift=.7ex,r,"f"] \arrow[...
Picaud Vincent's user avatar
4 votes
0 answers
711 views

Dynamically filter for multiple tags in org agenda

As far as I can see there are no previous questions on here that address my specific need, despite some being fairly similar. In the agenda view, I can use org-agenda-filter-by-tag to filter for/...
quantum285's user avatar
4 votes
0 answers
176 views

Is point in a regexp?

I am looking for something like thing-at-point for a regexp. For example, I want a function called regexp-at-point-p that will return the matched text if the text around the point matches the regexp ...
John Kitchin's user avatar
  • 11.9k
4 votes
1 answer
198 views

Dired; Is it possible, to show video duration as column in dired view?

i want to let dired show the duration of multimedia files as a column inside the dired buffer detail view. Is it possible? Any third-party extensions for dired? Currently i use exiftool -T -...
space_held's user avatar
4 votes
0 answers
214 views

Markdown equivalent of `org-indent-mode`?

What's the simplest way of ensuring that the text below a headline in a Markdown file is aligned with the headline? In org-mode you can accomplish this by calling org-indent-mode. Is there a similar ...
apc's user avatar
  • 319
4 votes
3 answers
680 views

How to override background to black after load-theme?

I am using the monokai theme from https://github.com/oneKelvinSmith/monokai-emacs, and I would like to override the background to be black. Following the override instructions, I tried: (setq monokai-...
Roxy's user avatar
  • 165
4 votes
0 answers
218 views

How to increse the number of undo steps stored by emacs?

Looking into undo, there are variables: undo-limit, undo-strong-limit, undo-outer-limit. While I can blindly set these to a big number and hope for the best.Whats a good rule of thumb for setting ...
ideasman42's user avatar
  • 8,846
4 votes
0 answers
85 views

Page thumbnails for pdf-tools?

Q: is there an image-dired analog to make thumbnails in pdf-tools? image-dired provides facilities to browse images in a directory by thumbnail. Is there analogous functionality for pdf-tools? The ...
Dan's user avatar
  • 33.1k
4 votes
1 answer
3k views

Getting error "Failed to download 'gnu' archive" on Emacs 26.3

I'm currently using Ubuntu 18.04, and trying out Emacs for the first time. However, whenever I run the command package-refresh-contents, I get the the follow error: Failed to download 'gnu' archive ...
gjvatsalya's user avatar
4 votes
0 answers
59 views

Package to detect most common typing mistakes

I'm a decent touch-typist, capping out around 90 WPM, but I know I'd be better if I eliminated some of the more persistent typos that crop up semi-consistently. It occurred to me this morning that ...
NateEag's user avatar
  • 586
4 votes
0 answers
124 views

Is there is an existing parser for `.gitignore` files?

Is there is an existing parser for .gitignore files? Maybe there is some Elisp package that includes something like this? Ideally, I would like to be able to read a .gitignore file in a given ...
krokodil's user avatar
  • 151
4 votes
0 answers
357 views

Count and display the number of subheadings

With this: * Cookie counter [0/2] - [ ] Item 1 - [ ] Item 2 I can count the number of list items or TODO items. But what if I just want to count the number of subheadings? Is it possible to get ...
deshmukh's user avatar
  • 1,912
4 votes
0 answers
363 views

How to make find-file-other-window reuse existing window

Is it possible to make find-file-other-window open the file in a pre-existing window instead of creating a new one? Currently: |A---|B---| |A-|C-|B---| |----|----| -> ...
sp00kyb00g13's user avatar
4 votes
0 answers
110 views

Tag inheritance respecting mutual exclusivity in org mode

Is it possible to have tag inheritance respect mutually exclusive tag groups in org-mode? What I would like to do is set a default tag on a top-level entry, and override it with one of the other tags ...
Milan's user avatar
  • 103
4 votes
0 answers
684 views

emacs is frozen

I'm running emacs 26.2 RC1 compiled with debugging features on Debian 8 Jessie 64bit. Sometimes the Emacs GUI will freeze and all the buffers will go black. I've tried hitting C-g a number of times ...
map7's user avatar
  • 533
4 votes
0 answers
423 views

Keep projectile and treemacs in sync

Since projectile and treemacs are independent project and treemacs-projectile is written as helper. However I fail to understand the concept of it. I want to see all my projectile projects be shows ...
Xolve's user avatar
  • 141
4 votes
0 answers
265 views

Are zero-based column numbers an Emacs idiosyncrasy?

The first line of a text file is line number 1 in probably every application I have ever come across, including Emacs. Every application I have at hand also uses column number 1 for the first column ...
Lassi's user avatar
  • 377
4 votes
0 answers
898 views

How to make emacs work well with tiling window managers?

Under some conditions Emacs will try to resize a frame if its not fullscreen or maximized. (specifically default-text-scale, but I don't think its the only one). This sends window-manager window (...
ideasman42's user avatar
  • 8,846
4 votes
0 answers
1k views

byte-compile much slower in X (vs. -nw)

Setup Windows 10 host with X server (VcXsrv) Linux guest (Arch) in virtual machine (VMware) Benchmark (defmacro measure-time (&rest body) "Measure the time it takes to evaluate BODY." `(let ...
feklee's user avatar
  • 1,079
4 votes
0 answers
1k views

Debugging in Unity3d with emacs?

I develop in Unity, and have been using emacs as my text editor for development. Debugging however has always needed to be done through monodevelop (and it crashes half the time while doing this). My ...
HHoverton's user avatar
4 votes
0 answers
567 views

exporting .svg images to .pdf in org-mode

I have a set of .svg images that I need to export to pdf by using org-mode. Even though I can see the images inside emacs, I cannot export them to .pdf. On the other hand, if I export my .org file to ...
Kadir Gunel's user avatar
4 votes
0 answers
360 views

Flycheck Emacs Lisp in Org-mode babel source blocks

I want to have Flycheck syntax checking when I am editing Emacs Lisp code in a literal Org-mode file using babel SRC blocks. (Using Org's editing buffers with C-c '). However the flycheck-emacs-lisp ...
Matthew Piziak's user avatar
4 votes
0 answers
123 views

Disable LINUX mode in Emacs

I am using Emacs 25.3 on Mac and when I try to open some linux kernel code, the behavior is different as below: I cannot simply open a C file, but I am prompted for arch each time. Occasionally, ...
Niranjan T's user avatar
4 votes
0 answers
636 views

Emacs into iCloud Drive for Coq

I use two Macs in my day to day coding studies: one iMac and one Macbook Air (three, if you count Emacs, ha ha ha). I often code on the same files with both computers, and iCloud Drive makes sense as ...
ryanicale's user avatar
4 votes
0 answers
70 views

A workflow for managing compiled elisp packages with different versions of emacs

I am using different versions of emacs, on different computers. On some of those (work computers) I don't really have a choice to update, whereas for my personal computers, I like to run the latest ...
T. Verron's user avatar
  • 4,293
4 votes
0 answers
738 views

new lines in org mode export to LaTeX

This is similar to (this question). I would like to export the following org-mode document to LaTeX: * Test text 1 text 2 text 3 - list 1 - list 2 - list 3 #+BEGIN_definition ...
alw's user avatar
  • 41
4 votes
1 answer
2k views

Generate a date tree from timestamps in org-mode

Since I was interested in doing my early capture-templates, I was tempted to go with this template below: ("j" "Reference type: Journal" entry (file+headline "~/Dropbox/orgfiles/gtd/ref.org" "...
doctorate's user avatar
  • 1,829
4 votes
1 answer
483 views

Color when visualizing latex table in orgmode

I am using Emacs + orgmode to write text and latex equations. The preview within orgmode (with C-c C-x C-l) works well for latex equations. However, I noticed that if I display a latex table within ...
Guilherme Salome's user avatar
4 votes
0 answers
3k views

Extremely slow startup on Windows - How to debug?

I have a serious problem with an extremely slow spacemacs startup (emacs-init-time = ~200s). (The server works, but this is so slow I cannot debug some other problems that I am trying to fix) My ...
guest's user avatar
  • 41
4 votes
0 answers
760 views

Opening TLS Connection fails

I installed powerthesaurus package from MELPA. This package finds out synnyms of selected words from powerthesaurus.org. I installed all the dependencies (dom - to be specific which did not get ...
Prasanna's user avatar
  • 1,550
4 votes
0 answers
5k views

Meta key in Mac for Emacs

I have been working with GNU emacs on a Linux server but my keyboard is for mac. I have a problem with defining the alt key as meta. tried (setq mac-command-modifier 'meta) in ~/.emacs.el and then ...
farzane's user avatar
  • 141
4 votes
0 answers
751 views

Display mode-line on multiple lines

How do I set the mode-line to display using multiple lines, as required (or even statically), to fit in all of its contents?
Infiltrator's user avatar
4 votes
0 answers
320 views

What is confusing about upcase-region?

Using upcase-region gives the message about it being disabled because new users find it confusing; but it seems very straightforward—replace every character with its upper-case version, if there is ...
Infiltrator's user avatar

15 30 50 per page
1
3 4
5
6 7
126