All Questions

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

Can't move to the beginning of buffer on notebook

Notebook , Linux Mint Emacs 26.1 I want to move cursor to beggining of buffer using shortcut. In documentation: beginning-of-buffer is an interactive compiled Lisp function. It is bound to <...
0
votes
1answer
13 views

How to pass arguments to a shell script using `make-process` function?

Consider a script file: ~/project/script.sh echo "arg 1 $1" echo "arg 2 $2" echo "arg 3 $3" And elisp file that invokes it using make-process: ~/project/special-mode/special-mode.el (let* ((...
0
votes
0answers
5 views

Two versions of Emacs on Windows: change the default “emacs” binding in the Windows shell

I have got two versions of Emacs on my Windows 10 laptop: Emacs 25.3.1 (x86_64-w64-mingw32) and Emacs 26.1 (build 1, x86_64-w64-mingw32). I would like the windows shell to run the 26.1 version by ...
0
votes
0answers
7 views

fixed-pitch font in markdown-mode table

I am using variable-pitch for markdown-mode. Tables use fixed-pitch (markdown-table-face). The table aligns for regular text. It breaks alignment for links. The spaces are also underlined. ...
5
votes
1answer
258 views

orgmode, capturing original document title

I have a basic capture template: ("a" "Article" entry (file+headline "~/GitLab/Reports/Bibliography/references.org" "Article") "* %^{Title} \n%?") that asks you to fill the Title field. Now, ...
0
votes
0answers
5 views

Automatically open headline on internal link

The following example implements an internal link to a headline: * Heading1 - Important facts * Heading2 - Jump to [[*Heading1][Link]] When following/opening the "Link" with C-c C-o, point moves to "...
1
vote
1answer
36 views

Altering syntax highlighting for a particular expression

In c-mode, I would like all lines beginning with exec sql to have that expression grey and the rest of the line in the default face. How might I achieve that?
1
vote
0answers
16 views

org mode does not export broken links

When I export an org document to html, the broken links are visible as html link 'nil'. What I want is just normal text, not link (just description from link). How can I accomplish this?
0
votes
1answer
26 views

Not opening large files — user-friendliness [closed]

I've decided to give large JSON (1.5G) a try and open it right away. Half an hour later I'm here, CPU's still at 100% and the screen is black:) Finally (thanks to @Muihlinn) SIGUSR2 worked, but even ...
0
votes
1answer
51 views

Working Around the OS X Catalina Conflict with Emacs 26.3

I'm struggling to workaround the problem discussed in this post. I'm working through the accepted solution (which also references this post, and getting what I think is close, but not quite there. The ...
0
votes
4answers
1k views

error message when previewing latex snippet in .org file

I am a brand new emacs user and I want to be able to view snippets of LaTeX in my .org file. My OS is Ubuntu 16.04, I have installed texlive-full, and I have installed AucTex and org using the Emacs ...
0
votes
2answers
75 views

mu4e (gnus) MS safelinks decoder

Today I got scared after noticing how many Microsoft ATP Safelinks had made their way into my org-mode calendar file. Therefore, is it possible to create a URL decoder to bypass Microsoft Safelinks ...
0
votes
1answer
83 views

Changing html renderer in Wanderlust

I would like to modify how mime/html entities are transformed to text in Wanderlust. At the very least removing background colors and excessive spacing. Is there any simple way to do so?
16
votes
5answers
5k views

How do I refactor across a project in emacs (change method name everywhere)?

I want to rewrite parts of an opensource project. This includes renaming methods. How can I do that efficiently in emacs across the whole project? I would rather not use hacks such as search and ...
0
votes
1answer
15 views

Trying to install org-ref package, but getting error 'emacs-25.1' unavailable

I am trying to install org-ref package but getting error package-compute-transaction: Package 'emacs-25.1' is unavailable. I searched Stack overflow, Stack Exchange Emacs, and github. I've found ...
0
votes
0answers
15 views

Org-mode spreadsheet time diff elisp formula or GNU Calc

I wish to substract from a start time an end time in my org-mode spreadsheet. My times strings look like this (only the inline code): starttime: 9:42 or 09:42 endtime: 18:20 So it's 24h format. I ...
3
votes
2answers
52 views

Display keybindings typed in a buffer

On this video stream, the window on right displays the keybindings typed with its corresponding command bound. Is there any package that does that, or a way to achieve it?
1
vote
2answers
33 views

I have to enable `hl-todo-mode` in LaTeX-mode?

Currenty I am on LaTeX-mode-hook and added following line global-hl-todo-mode into .emacs file to use hl-todo. On its readme it says: To highlight keywords turn on hl-todo-mode in individual ...
0
votes
1answer
26 views

thing-at-point does not bound url properly due to backslash in url

I am trying to filter URLs and elisp thing-at-point 'url doesn't bounds a url properly because it has backslashes \in it. I believe that backslashes are unsafe in urls, but that's a separate topic. ...
0
votes
1answer
18 views

Launch emacs in eww mode, display local .html file at startup

I'm new to Emacs and I'm going about customizing my install on Mac OS Catalina. I have a twist on a common request. I had the idea to customize the emacs startup screen, but I see those options are ...
8
votes
2answers
887 views

Open SVG files in XML mode

When opening a vector icon text file for editing, Emacs first tries to display it as an image. That is wrong ; If the file has errors, Emacs (25.3.2 - x86_64-pc-linux-gnu, GTK+ Version 3.18.9) crashes ...
0
votes
1answer
18 views

How to enable paredit mode on all clojure, clojurescript and elisp buffers automatically?

I want to enable paredit-mode on all clojure, cljs and elisp buffers by default, which is probably going to happen through the .spacemacs file. This is what I have so far in the user-config function ...
0
votes
0answers
14 views

How to enable paredit mode on all clojure, closurescript and elisp buffers automatically?

I want to enable paredit-mode on all clojure, cljs and elisp buffers by default, which is probably going to happen through the .spacemacs file. This is what I have so far in the user-config function ...
0
votes
1answer
50 views

How to deselect a symbol selected by `elpy-multiedit-python-symbol-at-point` for renaming?

I wanted to rename a variable, so I selected all its uses by C-c C-e (elpy-multiedit-python-symbol-at-point) and changed its name. How do I deselect it so that changes in one line don't appear in ...
0
votes
2answers
33 views

How to get kill-buffer-hook to detach a screen session prior to kill-buffer?

I keep many screen session running in the backgroud, which I access with M-x eshell-command "screen -r <myscreen>". Before I kill the *screen* buffer, I have to detach the session with C-a d. ...
0
votes
2answers
93 views

Merging consecutive entries that share the same headline

I've been trying to achieve the following: * Riviere Contents of Riviere title * Riviere More contents of Riviere turn into: * Riviere Contents of Riviere title More contents of Riviere I found ...
0
votes
2answers
21 views

Set ESS working directory from header-args with org-babel sessions

I am experiencing a very strange behavior with org-babel code blocks. When I operate without the :session tag, I am free to use :dir to set my working directory. As you can see, the following code ...
0
votes
0answers
15 views

Why does open projectile ask for pattern?

Whenever I am opening a project in spacemacs, it is asking for [] pattern: and a with list of files as a option. Why It is asking for a pattern ?
0
votes
1answer
95 views

lose reftex-isearch-minor-mode after refresh

I want to activate reftex-isearch-minor-mode and tried the solution in this post offered by giordano, (add-hook 'TeX-mode-hook (lambda () (reftex-isearch-minor-mode))) ; for AUCTeX it works when I ...
0
votes
0answers
8 views

Using straight.el to develop your own package which is also on github

I am considering using straight.el, but reading the docs, I have difficulties to understand whether the particular use cases I am interested in are handled as I hope to. Here are the cases: I have ...
1
vote
0answers
17 views

org: Internal link with automatically updating description, is it possible?

I use the CUSTOM_ID property for internally linking to headers. When I insert a link somewhere, I can either: leave its description empty, which results in the buffer showing #<id>; or put the ...
0
votes
0answers
19 views

Sum clock times by tag

I would like to sum clock intervals from tasks by tag. I found this blog post (code below). When I use it, I get the same report, regardless of the tag I request: Time: 4499:28 (4499 hours and 28 ...
0
votes
1answer
19 views

Emacs keeps overwriting files in Haskell mode

I'm using emacs: GNU Emacs 26.3 Copyright (C) 2019 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of GNU Emacs under the terms of the GNU ...
0
votes
1answer
45 views

Multicursor - not select all word in all lines?

Here is my text: Now I want to select text after "=" and move it to beginning of word "1111" M-x mark-sexp And here is my result: But I need to select the next words on 4 lines: 1111 ...
0
votes
1answer
14 views

Org babel remove currency form ledger output

Howto remove the currency from the table or get ledger -j to work so that gnuplot can work with the data? #+NAME: LedgerCli #+BEGIN_SRC ledger :results raw :cmdline reg "Assets:Service Days" --...
2
votes
2answers
42 views

What tools can help make the emacs debug output more readable?

I was expecting to find tools I can use to to e.g. prettify the stack trace, or e.g. show all variables that are bound at each level of the stack trace as you navigate, but haven't found anything. Do ...
0
votes
0answers
7 views

Better usage of langtool with `.tex` files

I have integrated langtool into emacs for grammer check .tex files. Seems like it is not configured for .tex files in some cases. Download link for the .jar file (https://languagetool.org/download/...
0
votes
1answer
337 views

Cannot enable visual line mode globally

I would like visual-line-mode to be always on. For this reason I put in the very end of my init.el file the following line of code (global-visual-line-mode 1) (as suggested here). Anyway, the above ...
0
votes
1answer
29 views

How to cancel a mini-buffer prompt from elisp, eg: “… changed on disk; really edit this buffer?”

Sometimes I get a mini-buffer prompt to check if I want to edit the buffer. Instead of answering this, I would like to revert all buffers, however this prompt remains. How could I cancel this prompt?...
23
votes
9answers
7k views

Hide list of minor modes in mode-line

I use quite a few minor modes and usually I know which minor mode is enabled in every major mode. If I really want to see the full list, I can run C-h v minor-mode-list. At the same time, my mode ...
1
vote
0answers
10 views

How to run current buffer as python module from project root in Elpy mode?

Take for example I have the following project tree. repo | +-root | +-__init__.py +-__main__.py +-packageA | +-__init__.py +-__main__.py My buffer is currently at root.packageA....
0
votes
0answers
33 views

LSP :: No LSP server for go-mode (check *lsp-log*)

I'm try to setup my golang IDE on doom-emacs. I've go installed $ go version go version go1.14.3 darwin/amd64 gopath is set - $ echo $GOPATH /Users/rajkumar.natarajan/go $PATH ...
0
votes
1answer
23 views

How to call xref-find-definitions without being prompted?

Is it possible to call xref-find-definitions to find the definition at the current point without being prompted to select the default? I'd like to bind this to a key, so it immediately jumps to a ...
1
vote
1answer
27 views

Emacs on Windows sets DISPLAY to w32

I stumbled upon the fact that Emacs on Windows sets the environment variable DISPLAY to w32 (if the variable is not already set). This causes problems for example with OpenSSH. What is the use case ...
0
votes
1answer
33 views

Why `(require 'my-package)' is not evaluated from within a `defun' form?

I have an init.el file with the following line: (require 'my-1) The my-1 package is on the load path. The my-1 defines this function: (defun my-f () "Hello." (interactive) (when (featurep 'my-...
0
votes
1answer
15 views

Spacemacs crashing on start with Ubuntu 20.04

I'm having a problem where every time I open Spacemacs it immediately crashes on Ubuntu 20.04. It was crashing for some actions with Magit and starting a CIDER REPL so I decided to do a fresh install. ...
0
votes
0answers
29 views

Super confused with lsp-mode… inconsistent documentation with Microsoft LSP + virtualenv

Here is my lsp-mode config: (use-package flycheck :ensure t :init (global-flycheck-mode)) (setq lsp-keymap-prefix "H-l") (use-package lsp-mode :hook (;; replace XXX-mode with concrete major-...
12
votes
2answers
544 views

How to change faces of org-mode links depending on the link type?

Org-mode offers a variety of different link types ([http], [file], [bibtex], [magit]...). However, they all get the same look defined by the face value for org-link. Is it possible to e.g. change ...
1
vote
1answer
39 views

How to keep keyboard focus on terminal after compiling tex?

My operation system is macOS Catalina. I am using iTerm2 in order to interact with emacs and my default pdf viewer is PDF Pro Reader Light. When a pdf file is updated, PDF Pro Reader Light ...
0
votes
1answer
27 views

Can I show the time spent in the currently active task in my orgmode clocktable?

When I press R in my orgmode agenda to view the clocktable (or v R for clockReport), I get a list of clock times for finished tasks. Is it possible to also show the time so far spent on the currently ...

15 30 50 per page
1
2 3 4 5
381