All Questions

Filter by
Sorted by
Tagged with
0
votes
2answers
49 views

How to use org-tree-to-indirect-buffer and turn off org-indent-mode in the new indirect buffer, with a toggle to go back, all in a single key binding?

I like using org-mode as a distraction free text editor. I also like using org-indent-mode when navigating my entire file. I also like using org-tree-to-indirect-buffer to focus on a desired section ...
0
votes
1answer
157 views

How company-mode suggestions are delivered?

I am curios whether there exist a side-channel possibilities for emacs company-mode. I thought, since company-mode suggests words that matches the given prefix, the suggestions may leak some sort of ...
0
votes
0answers
12 views

[Emacs 28.0.50][Windows 10] Start process “love2d” which is attached to the console

I am developing a game with the love2d lua API and with emacs as IDE. In order to easily test the game from emacs, I wrote following functions : (defgroup love nil "The customization group ...
0
votes
1answer
202 views

How to set up pyrightconfig in lsp-pyright?

I am using lsp-pyright[1] module in doom Emacs for Python major mode. Local imports from my project are not recognized by lsp server. I have created a pyrightconfig.json file in root directory of my ...
2
votes
1answer
2k views

How to clang-format the current buffer on save?

Whats the best way to clang-format a C/C++/GLSL a buffer on save, that does nothing in the case there is no clang-format file found for a project?
2
votes
1answer
67 views

Switch from Dired to Wdired rename file and directory errors when using “-F” or “--classify” ls switch regex help

If you set -F or --classify in the dired-actual-switches then it places a / at the end of directory names and * at the end of executables. When you finish renaming the files, these characters are ...
1
vote
2answers
157 views

Cannot open remote file with TRAMP

I'm trying to connect and edit files on my openwrt box. But every time I tried Emacs shows me a blank buffer. C-x C-f /ssh:user:192.168.200.1:/etc/config/network RET the filesystem on openwrt cat /...
0
votes
2answers
506 views

How to correctly configure Flow backend for LSP mode?

I'm using spacemacs @develop (branch). I can't use lsp and lsp-ui. In vscode everything works (using flow lsp mode). With company-flow I can also make it working. When opening a .js file with // @...
0
votes
0answers
5 views

Spacemacs: Python auto-completion works on Linux but not MacOS

I just installed Spacemacs on both my Linux and MacOS machines, but for some reason python autocompletion is not working on the MacOS installation. On Linux, I enabled the python layer and auto-...
0
votes
1answer
27 views

org-babel multi-line header var

I'm trying to find a way how to conveniently edit(and pass) multi-line arguments to org-babel block. In the example below, ${name} variable is pretty convenient to edit as inline variable but for ${...
1
vote
1answer
185 views

which-key takes up entire lower half of the screen (possibly related to package zoom)

Suddenly which-key, when triggered, takes up the entire lower half of the screen although only a portion of that is then filled with information. This behaviour started a couple of days ago, but I did ...
0
votes
1answer
19 views

Unexpected Error: (void-function check-calendar-holidays) in Calendar mode

I am trying to adapt this code from https://www.emacswiki.org/emacs/DiaryMode for use in Emacs with calendar and diary. (defun diary-schedule (m1 d1 y1 m2 d2 y2 dayname) "Entry applies if ...
0
votes
1answer
23 views

org-fill-paragraph doesn't comply with org-list-allow-alphabetical

Given that (setq org-list-allow-alphabetical t). Consider the following example, where | stands for the point: 1. |Lorem Ipsum 1. Lorem Ipsum 1. |Lorem Ipsum a. Lorem Ipsum While org-fill-...
1
vote
2answers
84 views

How prevent `display-buffer` from opening a specific buffer in a new window if and only if it is shown in another frame

I want the *compilation* buffer to not pop up in my main frame when I have it in another frame already open. However if the buffer is not shown anywhere, I do want it to pop up in a new window of the ...
0
votes
1answer
28 views

How to prevent `[size greater than: 0]` shown in the iBuffer buffer

When I run M-x ibuffer, it keeps adding [size greater than: 0] into top iBuffer file, which increases its file size. Would it be possible to prevent it? minimal.el: (add-hook 'ibuffer-hook (lambda ()(...
2
votes
2answers
146 views

How can I debug a hang when debug-on-quit doesn't work?

I have a problem with haskell-mode where Emacs will hang every time I open up a Haskell file. Mashing Ctrl-g a few times will get the file opened. So I would imagine setting debug-on-quit would allow ...
3
votes
1answer
73 views

Emacs 25.3.2: reverse windows on files opening

If I open 2 files by command line: emacs file1 file2 in Emacs 25.3.2, file2 is opened in the upper window and file1 in the lower. This didn't happen in previous versions of Emacs that had the ...
0
votes
1answer
42 views

Access Table data from from elisp using headline ID

I have a bunch of recipes under different headline, and each have an ingredient list specified as a table. I would like to access that table as an list in a src block using the headline id, same as if ...
0
votes
0answers
42 views

Highlighting all matched groups in font-lock-add-keywords rule

I'm trying to highlight variable-type in custom let-like form that looks like: (mylet ((<variable-type> <variable-name> <variable-value>) (...)) <some-forms>) To do ...
1
vote
1answer
144 views

How can I display very large SVG files using `image-mode`?

I'm trying to use Emacs to visualise very large UML diagrams created by PlantUML [1]. In PNG form these diagrams have over 20000x1300 - in fact, the reason why I moved from PNG to SVG for their ...
0
votes
0answers
49 views

How to override evil-org-mode keybindings

Here is the evil-org pachage I am using: https://github.com/Somelauw/evil-org-mode. All I want to is be able to demote/promote a subtree by pressing M-L/H. I have tried using the way the repo ...
2
votes
4answers
4k views

How to replace multiple newlines for single one in whole file?

I have file which has multiple newlines. I want to receive single newline in their place. I know how to do it in vim(found in google query): :%s/\n\n\n*/\r\r/ How can I do the same in Emacs? ...
0
votes
1answer
37 views

Emacs fails to load org-id at start

When I start the emacs and try to customize variable org-id-locations-file it can't find it. But I can describe variable org-id-locations-file. After describing the variable, if I run customize ...
2
votes
2answers
3k views

Are there any tutorials/documentation for lsp-java?

I have managed to install lsp-java according to their git Readme (https://github.com/emacs-lsp/lsp-java) and created my workspace. Is there a better way (eg. in form of a documentation or tutorial) ...
0
votes
0answers
328 views

Emacs hung with Error running timer 'blink-cursor-start'

I just installed a fresh Ubuntu 17.10 on a Dell XPS 15, and then installed Emacs from the repos with apt-get in the normal way. The moment I start Emacs, I get the error message Error running timer '...
0
votes
0answers
28 views

Inserting tilde before \eqref and \cite in cdlatex

In cdlatex mode of auctex, typing ref followed by using the Tab key yields \eqref{}, where I can specify the appropriate equation label. But I would like to generate ~\eqref{} instead of \eqref{} when ...
0
votes
1answer
28 views

How to override org-mode-map key bindings?

I would like to override the C-c C-j keybinding. I put this in my init file (global-set-key (kbd "C-c C-j") 'counsel-org-goto) However, it won't override the command org-goto (found in org-...
0
votes
1answer
145 views

Python formatting not working on Doom Emacs

I activated the formatting on save in the init.el file uncommenting the following line (format +onsave) ; automated prettiness But when I save a Python file, I get the following error message: Error ...
0
votes
1answer
40 views

How can I remove whitespace in HTML?

I would like to be able to go from this: <label for="exampleInputEmail1" class="form-label">Phone number</label> <input type="text" class="form-...
3
votes
1answer
536 views

Equivalent to `ido-find-file` functionality for ivy/counsel?

I really like how ido-find-file, if it can’t find a file matching your string (and you’ve let it idle for like a second), will search your whole home directory for files matching that string, and then ...
2
votes
1answer
69 views

How to automatically downscale an image to window width in org-mode?

I use org-toggle-inline-images to directly view linked images in org-mode files. Unfortunately, depending on resolution, format and size, images often are too wide for the window (especially in ...
0
votes
2answers
71 views

Hide / fold settings above an image

Is there way to "fold" settings, similar to how I can fold drawers? I have these properties associated with an image: #+NAME: fig:figure name #+CAPTION: figure name #+ATTR_ORG: :width 200 #+...
1
vote
1answer
110 views

Scilab-mode syntax highlighting

I'm trying to install (and run) scilab-mode, but the syntax highlighting does not work when I open .sci or .sce file. I use the exact configuration described in the scilab.el package. https://www....
3
votes
2answers
926 views

Pasting in evil-mode when there's an active selection copies the selection

Currently when I select a bit of text replacing another bit of text (eg "viwp" to paste over the current word) it copies the thing I just replaced into kill ring. So if I try to paste over another bit ...
0
votes
1answer
83 views

How can i make org mode export latex file with a custom language?

I need romanian for my school reports, i want to write them in org mode. Is there some #+LANG attribute? Do i need to set some emacs variables? I'd really like a per-file solution more
1
vote
1answer
48 views

How to make set-input-method buffer-local

I'm using Emacs 26.3. How do I set-input-method to latin-alt-postfix at the top of the buffer using the -*- ... -*- local-variables method? There are only certain files that I want to do this for. I ...
6
votes
1answer
2k views

Emacs IPython prompt symbol is garbled

I just installed Fedora 24 with Emacs and IPython. When I launched the IPython shell in Emacs, the prompt symbol, which should be "In [1]", is displayed as "^[[?12l^[[?25h". Is there a way to solve ...
0
votes
1answer
51 views

Compile output re-write

I'm working with an old compiler that puts out error lines like this: ./code\driver.c(327): WARNING C4200: Other... I need to fix a couple things: Fix the path from Wine/DOS mode to local: ./code\...
0
votes
0answers
14 views

briefly holding shift+arrow results in “runaway” selection

When I try to select a region using shift+arrow, if I hold the key combination down for a second or two it will continue selecting the text after the keys are released. It appears to enter an ...
0
votes
1answer
28 views

Filter Columnview Dblock on Properties or Tags

I have been unable to get the :match feature of columnview dblocks to work. I need it because I want to filter headlines by tags that I used to identify Scrum stories in a particular sprint. I have ...
1
vote
1answer
580 views

mu4e - Changing existing headers

I'm using contexts within mu4e, and I know how to add custom headers via the mu4e-header-info-custom list. What I'd like to do, however, is to alter existing headers when replying or composing within ...
0
votes
0answers
21 views

How to change to any todo state from org-agenda? (Bug?)

I have customized my org todo state keywords to the following: (setq org-todo-keywords '((sequence "EVENTUALLY(e)" "BONUS" "OPTION(o)" "TODO(t)" "|" ...
0
votes
1answer
25 views

`racket-mode` REPL doesn't find packages

I recently installed Racket (using Guix) and installed a couple packages (gregor-lib and pollen). When launching from my terminal, it all works as intended. Inside Emacs however, both racket-mode ...
0
votes
1answer
88 views

I got an error: Package 'tabbar-20160524' is a system package,not deleting

I installed spacemacs using "git clone https://github.com/syl20bnr/spacemacs.git ~/spacemacs/.emacs.d" but I got an error: Package 'tabbar-20160524' is a system package,not deleting.... When I ...
0
votes
0answers
16 views

Add quotes or brackets around selection in doom-emacs

I used to use Spacemacs and it had this nifty feature where a selection could be bracketed with quotes, parentheses or any similar pair characters by simply pressing the character. So UpdateJob could ...
0
votes
2answers
46 views

Elisp function to open file name with space?

To open a file with default associated application, I have this function, which works as I expect, except with a file name that has space: (defun open-a-file () (interactive) (let (...
20
votes
5answers
4k views

Can I format cells in an org-mode table differently depending on a formula?

I have a column in an org-mode table with numbers in each cell. I'd like to change the background color of the cell to red if the number is below 1 or above 2. How can I do that?
0
votes
0answers
32 views

flycheck: c/c++: how to pass the option --library=posix to cppcheck

I found a lot of things to customize in flycheck, but not one that would enable passing down --library=posix option to cppcheck.
0
votes
3answers
353 views

pdb within eshell up/down keys dont work

I am running python3 in eshell. When I use import pdb; pdb.set_trace() in my code, pdb opens within eshell. Everything works in pdb but the up/down keys don't work for running the previous command. ...
1
vote
1answer
835 views

Emmet-mode: Wrapping individual lines in HTML tags

I'm new to Emacs, new to Emmet, and new to Stack Overflow. I'm trying to wrap a list of text in individual html tags. Home About Something is supposed to become <ul> <li>Home</...

15 30 50 per page