All Questions

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

How to load image using iimage-mode when I first open a markdown file?

I have a file which embeds an image ![](file://tmp.jpg) I have added iimage mode to the markdown mode hook and even added recenter to it (add-hook 'markdown-mode-hook 'iimage-mode) (add-hook '...
2
votes
1answer
82 views

elisp regular expression build problem

I have the following line : mod_name func_name /users/username/workspace/path_name/file.c 283 I wanted to capture the 3rd and 4th entry in this line, I am able to do that using regular expressions ...
1
vote
0answers
22 views

Can I set a variable scoped to a perspective?

I have a large monorepo repository and open different parts of it in a persp-mode perspective. It would be nice if for all buffers owned by that perspective I could set for example projectile-project-...
1
vote
0answers
18 views

OrgMode table text narrowing issue with links

I have an issue with my GNU Emacs 26.2 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.8) of 2019-04-30 in OrgMode. I have a table. One of its collumn is filled with internal links (inside ...
0
votes
1answer
31 views

How to write a helm persistent-action to open a file at a particular line number?

I have written a helm-extension that at the end shows a list of entries where each entry is like this: module_name function_name file-path line-number I am now writing a persistent-action that ...
2
votes
0answers
25 views

Help dealing with Async sleep for “Simulated Typing” effect [closed]

I am trying to build a function, that takes a body of text from a buffer or a file, and "simulates typing" in another buffer. This will serve me towards recording programming videos where the code ...
0
votes
1answer
29 views

Evaluate single line of python code from Emacs org-babel

Consider a block of python code in an org-mode document: #+begin_src python num1 = input("Enter a number: ") num2 = input("Enter another number: ") result = float(num1) + float(num2) print(result) #...
0
votes
2answers
36 views

1 single custom command to compile and run executable

In my emacs init file, I have this: (add-hook 'c++-mode-hook (lambda () (set (make-local-variable 'compile-command) (concat "g++ " buffer-file-name)))) Then, ...
0
votes
1answer
22 views

How to call an interactive function while building helm-sources?

With a region selected I can call this function "accdeb" (below) that gives me the right results in a list. How can I feed this list to helm ? With the code below I get: wrong-number-of-arguments. ...
2
votes
1answer
35 views

Prelude: How to add smartparens key bindings to C-c prefix?

I am using Emacs with Prelude. When I hit C-c prefix in a clojure buffer, I would like to show a smartparens key bindings. Like in screenshot below I would like to to add entry for smartparens key ...
0
votes
1answer
25 views

Scripted bookmark jump not working after startup

Add the following to .spacemacs: (defun my-bookmark-set (char) (interactive "cPlease enter a bookmark name to set: ") (bookmark-set (char-to-string char))) (defun my-...
0
votes
0answers
24 views

org-protocol not responding

Description I use org-capture extension which had been working great for about 6 months. I have trouble making org-protocol work from Firefox since 8/1/19. When hitting the extension button in FF, ...
0
votes
0answers
13 views

AucTeX'sTeX-next-error not catching any errors in ConTeXt

AucTeX's TeX-next-error doesn't display any of the errors listed in the output buffer, only "No more errors". MWE: \starttext \Hello \stoptext % Local Variables: % ConTeXt-Mark-version: "IV" % End: ...
0
votes
0answers
27 views

Org capture datetree duplicanting entries (when using other locales)

I started using Emacs on Linux, now I moved to Mac OS and my problems began. When I use org-capture to capture stuff to a datetree, it duplicates the day entry instead of just adding a new node under ...
0
votes
0answers
22 views

help: bash error in emacs rust/cargo

i get this error in emacs when runing a rust file (have rust and cargo): cargo run /bin/bash: cargo: command not found Compilation exited abnormally with code 127 at Thu Aug 8 20:28:50 yet i ...
1
vote
1answer
21 views

Basic quote regex for font-locking?

I have my own font locking that highlights quotes in comments eg. /* Some comment 'this is quoted' * more 'text in an escaped \` quote'. * Plurals such as Moe's or Joe's should work too. */ ...
1
vote
1answer
15 views

Can I (or should I) toggle off the left side of bookmark-list display (Bookmark+)?

I started using Bookmark+. Haven't customized it at all, it seems its using the left half of the screen to show what seems like "duplicate" information. As I using this tool right?
0
votes
1answer
34 views

bind german mutated vowel keys to functions

I have a German keyboard and would like to bind Isearch to C-ö. How can I do this?
0
votes
1answer
23 views

Have an org-protocol that opens a file and moves point to it

I would like to have an org-protocol that supports line numbers. For example org-protocol://open-file?file=/foo/ss/subdir/foo.js&line=132 This would open file /foo/ss/subdir/foo.js at line 132. ...
0
votes
0answers
9 views

What are the steps to set up elpy to use the anaconda python distribution on Windows?

I have anaconda installed on Windows (Windows 7), and it is working well in Jupyter. But of course I'd prefer to work in emacs. I have elpy installed in emacs, and it successfully sends commands to ...
0
votes
0answers
27 views

In EXWM (Emacs X Window Manager) how can I switch to previous X window?

This question is related to this... In this case I wonder how could I switch to the previous X window when working in a given workspace of EXWM (by X window I refer to a top-level X window created ...
1
vote
0answers
12 views

spacemacs opens file in terminal split

I'm using neotree and as you know it opens a file in the most recent window split you accessed before switching to neotree (window 0). Sometimes this last accessed split is the ansi-term window I ...
0
votes
1answer
24 views

Can't paste(yank) selected region by multiple-cursor

Is it possible to copy/paste region. I whant to copy city's name from the next text. Here text: 000 111 222 key=Paris, 555 666 111 222 key=Berlin, 555 666 1111111110 111 key=Toronto, 555 666 ...
0
votes
0answers
20 views

Spacemacs: smart search skips C++ files

emacs version: 26.1 Spacemacs version: 0.200.13 Spacemacs init is the default generated one. Smart search set to ag OR grep My git C++ project has C++ source and header files, plus python and text ...
3
votes
3answers
35 views

How to change the font face of the current buffer?

I am using tex-mode in Aquamacs and would like to temporarily change the font for the current buffer. What is the way to do it? I tried: (set-face-attribute "American Typewriter" nil :height 150) ...
2
votes
1answer
26 views

How can I set color for listing executable files in Dired Mode?

Trying here to set color for executable files, as it is for ls command! How can I do that? I've already managed to set color for certains file extensions, using Diredful package, but couldn't do it ...
1
vote
1answer
23 views

Use lsp-mode for some projects and ggtags for others

Is there a way to configure Emacs to activate lsp-mode for some projects and ggtags for other projects? Maybe using .dir-locals.el? I code C++ and the project I most often work on doesn't support lsp-...
0
votes
0answers
14 views

Memory Profiler reporting error upon profiler-report

After calling profiler-report after doing profiler-start and selecting mem I get the following error: maphash: Wrong type argument: number-or-marker-p, unbound Any Idea why?
2
votes
1answer
33 views

emacsclient GUI has small fonts

Recently I updated Emacs to the newest version (26.2) which comes with new daemon functionality and Emacs server in combination with Systemd (Manjaro here). Previously there were no issues with ...
1
vote
1answer
33 views

Remove extra prompts in Emacs Babel Python session

When I run the following code block from Emacs org-babel: #+BEGIN_SRC python :session *Python* :results output print("Hello World") #+END_SRC This is what prints out in my *Python* session: >...
1
vote
1answer
25 views

Org-babel python with session breaks output

If I run the following code block: #+BEGIN_SRC python :results output print(" /|") print(" / |") print(" / |") print("/___|") #+END_SRC I get the result as expected: #+RESULTS: : /|...
1
vote
1answer
36 views

Export only visible entries of sparse tree

I'm trying to export an org file into a file that contains only the visible entries (and parents) of a sparse tree (matching a specific tag). For example, applying this to the following tree * A ...
0
votes
1answer
18 views

Disable flycheck in XML files [duplicate]

When flycheck runs when I am editing largish XML files (I believe it is just nxml mode), it tends to slow things to a crawl and then I have to kill emacs since C-g only works for a fraction of second. ...
1
vote
2answers
17 views

How to interpret buffer-display-time values?

I am trying to use buffer-display-time var, in order to come with a solution for this question. Having a look at the documentation, I get this: buffer-display-time is a variable defined in ‘buffer.c’...
0
votes
0answers
6 views

Drop rows with zero time in org-mode agenda clockreport

I recently found org-agenda-clockreport. Because I keep all my .org files in a single directory (indexed by deft), including files with notes and no tasks, I get a table with tens of rows, with only ...
1
vote
1answer
26 views

How to change shell-script-mode indentation not to use tabs?

To reproduce my issue, open your .bashrc or a .sh file and type the following: if while echo The if has no indentation. Good. The while has the default four spaces of indentation. Good. ...
0
votes
0answers
20 views

running pytontex script in auctex

When using the pythonTeX package I need to compile my latex files in three steps: run latex <mylatexfile> run pytontex <mylatexfile> run again latex <mylatexfile> How to ...
0
votes
1answer
31 views

Org mode: how to display tree content only via Elisp

I'm new to Elisp and I'd like to start using Emacs org Mode as my main writing tool. For that to happen I'm trying to set up a good configuration with custom functions. What I'm trying to achieve is "...
0
votes
0answers
26 views

Emacs Windows10 ragged font

I'm having issues with ragged or cutoff fonts in emacs with windows10. It's especially noticeable when looking at the bullets in org-mode bullets which seem pixelated and off center. Specs: Display ...
0
votes
0answers
45 views

Unsure what to make of the following Emacs prompt to change my init file

Every time I open emacs, I get the following error; emacs is working fine, but not giving me the initial help screen: An error has occurred while loading `/Users/thorkamphefner/.emacs.d/init.el': ...
0
votes
0answers
7 views

Feeding narrowed org subtree contents to a babel block of code?

I have a usecase where I make structured notes under an org heading, and then would like to occasionally perform some little analytics to the contents. Currently I have to navigate to the heading, ...
0
votes
1answer
26 views

How to set magit recent commit always expand when i open magit status?

When I open a Magit status buffer, then the recent commit section is closed, I need to use TAB to expand it. How can I configure it to always be expanded.
1
vote
1answer
20 views

Email is opened in an external program when I try to send it

When I compose an email with message (via mu4e or otherwise), and include an attachment for a LibreOffice document, I can't send the message. When I try to send it, instead of having the normal ...
0
votes
1answer
15 views

org-clock-report not updating current day values

I am very recently working with time tracking in org-mode. When I make do org-clock-report, it reports well. I edited the top line to display features per date and C-c C-c: #+BEGIN: clocktable :...
0
votes
0answers
30 views

Impossible to answer y-or-n-p prompt in EXWM if X window is focussed

When a y-or-n-p question (e.g. The file you want to open is very large. Really want to open it?) pops up in the minibuffer while an EXWM buffer is focussed, I have no option to answer the question (...
1
vote
1answer
73 views

Quick optional alternative to “M-x compile”

I'm using "M-x compile" several times a day with the following in my ~/.emacs: (setq compile-command "cd ~/my-dev/linux_build/ && killall gdb ; ~/my-dev/someStuff/.git/hooks/pre-commit; mv -f ...
0
votes
0answers
9 views

org-clock-in returns org-flag-region error

Why do I need to org-clock-in three times? Hit M-x org-clock-in > org-clock-find-position: Symbol’s function definition is void: org-flag-region The drawer is created without timestamp though: * My ...
1
vote
1answer
40 views

How to stop Emacs from deleting trailing whitespace?

By default, Emacs quietly deletes trailing whitespaces once the user moves on to the next line. To reproduce the issue in plain Emacs, do this: Start plain Emacs: emacs --no-init-file --no-site-file ...
0
votes
2answers
31 views

Command to apply invisible property to selection

I would like to have a command that makes selected text invisible, and another to make selected text visible. Currently I have (buffer-invisibility-spec '(a . t)) (global-set-key (kbd "C-c i") (...
0
votes
1answer
33 views

How to count matches of all buffers?

I am looking for a way to count regexp matches across all buffers. count-matches can count in current buffer. How to count across all buffers?

15 30 50 per page