All Questions

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

How to make markdown-live-priview-mode use pandoc?

I'm having a problem where in markdown-live-preview-mode tables are not correctly converted to HTML from markdown. I'm using markdown-mode. I've tried using pandoc to create the HTML and pandoc ...
0
votes
0answers
3 views

Get Tex-latex-mode style inline math fontification in Org mode

I enjoy the inline math fontification that the AucTeX TeX-latex-mode provides – both the theme-responsive coloring and visual indication for sub- and super-scripted math. I have worked in plain ...
0
votes
1answer
7 views

How to call `replace-string` with specific strings from code?

Sometimes I want to replace [$] with \( and [/$] with \) either in the region or in the whole buffer. replace-string works well for that, except for requiring me to type the strings I want to replace. ...
0
votes
1answer
3 views

Auto-add BCC address to notmuch/message-mode messages

I use GNUs for most of my email needs, but also have notmuch for rapid search of my inbox. Trouble is, when I choose a message in that notmuch search, it doesn't open it with gnus but with its own ...
0
votes
1answer
11 views

How to align the source code block when export to PDF in Org-mode?

While using org-mode to export source code to PDF files, the source code is not aligned with the indentation of the text. The .org file are as follow: And the output result looks like this: Would ...
0
votes
0answers
5 views

C-< and C-, keys are echoed as C-\

I'm trying to edit multiple lines with multiple-cursors package. MC package has C-< keybinding but when I do C-< (Control+less-than sign) it is echoed as C-\ (Control+backslash). I don't know ...
0
votes
2answers
19 views

Why is my Python indentation set to 8 locally by default?

I'm running Emacs 25.2.2 on Ubuntu 18.04 for WSL. I launch emacs -q and open a new Python file, test.py. As soon as I hit the Tab key, I notice the indentation is 8 spaces instead of 4. I don't like ...
0
votes
0answers
3 views

Mediawiki sometimes not saving changes

I have tried using Emacs Mediawiki package but it does not save changes sometimes and it is annoying. If I do simple edit like adding a word or character it works fine, but it doesn't work if I copy ...
1
vote
1answer
13 views

remove keybinding from ess-extra-map

Related: https://stackoverflow.com/questions/7598433/how-to-remove-a-key-from-a-minor-mode-keymap-in-emacs How can I find out in which keymap a key is bound? There is a default keybinding in ESS ...
3
votes
1answer
50 views

How to discover (standard) function names?

When programing emacs (or common) lisp, how to discover (standard) function names (using emacs and working offline)? Example: Let's say you want to shift bits of an integer, but you don't now ...
0
votes
1answer
15 views

How to use unbound keys as “non-sticky” modifier keys

I would like to setup keyboard shortcuts with other keys that traditional modifier keys, as modifier keys. example : bind "f1-left" ( so F1+←) to a command. But not bind the sequence F1 ← to the ...
0
votes
0answers
19 views

Cannot generate previews with latex-preview

I am trying to use preview-latex but, when I generate previews, these are not loaded in Emacs gtk buffer, even though previews are correctly produced in the .pdf output file. The error produced is ...
0
votes
0answers
16 views

writegood mode in code

I like to use writegood-mode for my source code comments. I feel that there should be a way to make it check comments only. However, my python files display that kind of things: and so does bash mode:...
1
vote
0answers
12 views

completion-kill-region breaks rectangle-mark-mode

When using dynamic completion, rectangle-mark-mode is broken, in so far as C-w no longer respects just killing the rectangle but instead kills the usual full (non-rectangular) region. M-w on the ...
0
votes
0answers
15 views

mu4e or mu cannot find a search term with a period

I use mu4e and sometimes I cannot find a message with a search term including a period. For example, if I search for Google.org, I see: No matching messages found but if I search for "impact ...
1
vote
1answer
18 views

Yasnippets: How to add if statements that check for regex?

I would like to replicate some of the snippets shown in this blog post Some of the snippets shown in that post involved if statements that check for regexp in snippet fields as well as checking for ...
0
votes
1answer
31 views

How to automatically press the Tab key to execute minibuffer-complete after executing imenu?

I first set up this key binding : (global-set-key (kbd "<f4>") (lambda () (interactive) (other-window -1))) When I use imenu I always have to perform the following steps: Step 1: Press M-x ...
0
votes
0answers
18 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 ...
2
votes
2answers
27 views

How can I prevent org-mode reading agenda files when started?

My org-mode agenda files are on a remote machine, accessed via ssh using tramp. When org-mode starts it always reads this file, which is inconvenient as it makes opening any org file very slow. I ...
0
votes
0answers
15 views

gnus viewer for attachments

I recently started using gnus to view my emails. Opening attachments is still the most annoying part for me and I am trying to address that. The behaviour I would like is: If the attachment is text-...
1
vote
0answers
27 views

Helm for anything

I use Helm for switching between buffers, opening files, m-x'ing, etc. Is there a way to make helm search in all these things at the same time? I'd like a super-helm to provide all the results I'd ...
1
vote
2answers
62 views

How can I represent a 4 spaces indent width as 2 spaces?

For clarity: I mean indents as represented by individual spaces, not tab characters. I'm working with a friend on a javascript project, and while I'm an 80col zealot, he wants to have 4 space indent. ...
1
vote
2answers
32 views

how to prevent debugger from taking focus when you evalute lisp expresison with errors

How to reproduce: write some faulty elisp code press C-x C-e for eval-last-sexp the debugger will appear (*backtrace* window) and take the focus of the cursor. I'd like the focus to remain with ...
0
votes
0answers
6 views

Add advising function to evil-ex

I want to add a display-line-number-mode advice to evil-ex. This should turn on line-numbers when I toggle evil-ex in a non line-numbered buffer. (defvar line-number-changed-call nil) (defun ...
0
votes
1answer
38 views

How to set key binding for read-only-mode? in order to simplify cursor movement

moving point command: next-line, previous-line, forward-char, backward-char, etc. How to omit Ctrl key in read-only-mode? How can I combine with read-only-mode-hook to automatically enable keybind ...
0
votes
1answer
16 views

Melpa packages are not indexed before manually listing packages

I recently switched from sublime text 3 to emacs so I still don't quite understand everything. When I launch emacs and run package-install, I can not look up packages from Melpa to install, e.g., ...
0
votes
0answers
22 views

Spacemacs/LaTeX : How to scroll at the same time and pace a tex file and its pdf preview?

Config : Spacemacs 0.300.0@27.0.5 with latex layer I am using two windows in one frame with a tex file and its preview: |---------------------------------------------------------| | \section{...
0
votes
0answers
6 views

ein login error due to curl version not support compressed

I am using win10, emacs version is GNU Emacs 26.3. python version is Python3.6.8. After install EIN (EIN version is 20190813.2156) package and try to run M-x ein:login, I got below error message: ein:...
0
votes
0answers
13 views

magit commit does not permit adding a gpg signature, nor showing the signature in the log

I am failing to run gpg to sign commits, after doing so successfully before an upgrade to Mojave and an upgrade to Emacs. (I am not sure when I lost the ability to sign files in the past year.) When ...
0
votes
0answers
8 views

Debugger breaks with Args out of range: “”, 0

When forge is installed on a system with no compiler, I sometimes get this error which breaks magit. I'd like to figure out the traceback for this error so I can add some proper error handling, ...
0
votes
0answers
23 views

Translating C-M-S-s to H

I followed a Linux tutorial that turns the Caps Lock key into the hyper modifier, so I defined some keys such as H-b. I'm using the same Emacs configuration on macOS, so I tried to map caps lock to ...
1
vote
0answers
28 views

Simple regexp inside emacs keyboard macro

Newbie question: I'm trying to record a keyboard macro with a simple regexp inside (search-backward-regexp ^[0-9]). This works well when recording the macro, but as soon as I try to execute it, the ...
0
votes
0answers
10 views

Choose to use a function between emacs packages or libs

Suposse that I want to use the function dolist from package cl (I know that is obsolete and als have cl-lib package). but when I'm looking for documentation (C-h f dolist) I get the following: ...
2
votes
0answers
33 views

Display one character in an alternative font family

I want to change the appearance of my lozenge character. I have tried running the following: (set-fontset-font "fontset-default" ?◊ (font-spec :family "PragmataPro")) However, if I type ◊ and ask ...
0
votes
1answer
16 views

How to unpack a tuple from org-sbe evaluating a python code block into multiple columns of a org-table?

I often encounter situations where I can easily think of python code that, given some input values, computes multiple output values at once. As an example, consider the following simple code-block ...
1
vote
1answer
44 views

how to enable pager like behavior in a shell buffer?

I can't believe I'm saying this, but one thing that is "nice" about windows cmd is the pager. When I do man grep in a bash shell inside emacs buffer it spits out the entire content at once. Is there a ...
2
votes
1answer
23 views

Can magit pull hunks from another commit into my branch?

I have a big commit on another git branch. I'd like to "cherry-pick" some hunks from that commit into my current branch. I bet magit can do that, but I'm not sure how. Anyone? (I've seen ways to ...
1
vote
1answer
39 views

Can't view anything in org-agenda: Wrong number of arguments: (0 . 0), 2

Whenever I try to view my org-agenda, I get a blank buffer with "Wrong number of arguments: (0 . 0), 2" in the minibuffer. I've followed dozens of tutorials and bug reports and nothing applies. Can ...
0
votes
0answers
13 views

How to allow multi language output with org mode and Latex?

I'm using the most recent version of emacs on Windows10. I have an issue where when I want to convert an org file to Pdf through Latex but I'm having languages issues. If I use English I have to ...
0
votes
0answers
10 views

Fontconfig Error in Snap version of Emacs

I installed Emacs 26.3 using Snap in my Debian Buster. After I launch it, it gives me the following errors: Fontconfig warning: "/etc/fonts/fonts.conf", line 5: unknown element "its:rules" Fontconfig ...
0
votes
1answer
16 views

How to change what modeline displays, based on major mode?

i know i can change what info to display in modeline in mode-line-format variable. But how to display mode-line-position for one mode, but not display it for another?
4
votes
1answer
38 views

Why does a let-bound huge list survive garbage collection after the let form?

Note that the following original test is errorneous and has been superseded by the EDITED version below. (progn (message "Before: %S" (memory-use-counts)) (let ((x (make-list 100000000 0))) (...
0
votes
0answers
9 views

How to disable eldoc when using TRAMP (editing files over SSH)

Eldoc really bogs down the editor when used over SSH with TRAMP. I want to disable it in those cases. What I've tried is this: (defun no-tramp-eldoc () (interactive) (when (string-prefix-p "...
0
votes
0answers
21 views

Integrating org-download with org-journal; images do not download

I have org-journal entries which I'd like to link to images that are also stored alongside them in the filesystem. Ideally this would happen automatically when an image is dragged-and-dropped on the ...
0
votes
0answers
40 views

Why is scrolling line-by-line so much slower compared to vi-mode?

I was wondering if anyone has faced this issue before or is just me loosing my mind? It seems that C-n and C-p are so slow and sluggish compared to the j and k keys when using evil-mode. Is there any ...
0
votes
0answers
9 views

How to temporaraly turn on a minor eldoc mode

I am trying to use go-eldoc, but its performance is too poor to always have on. This is what I currently have: (use-package go-eldoc :defer 2 :hook (go-mode . go-eldoc-setup)) (use-package go-...
0
votes
0answers
8 views

emacs 26 orgmode on win10 can not find jupyter

I am using emacs26(GNU Emacs 26.3 (build 1, x86_64-w64-mingw32)) on win10. I can run jupyter command from shell. but when I run below code: #+BEGIN_SRC ipython :session test :results output print("...
0
votes
0answers
21 views

When I go into the terminal the C-c / C-j and C-c / C-k keybindings are no longer working [on hold]

When in term mode the C-c C-j C-c C-k key bindings are designated as activating line and char mode respectively [1] However if I activate the following global-set-key as defined in my init file, the ...
0
votes
1answer
28 views

In MacOS, is there any way to have native Mac layout for ‘option-something’ special symbols in quoted-insert?

With quoted-insert (C-q) I can enter ‘Option-something’ extended characters, but Emacs apparently understands them as ISO 8859-1. Meanwhile, MacOS has its own layout for these characters (changed with ...
1
vote
1answer
23 views

image-dired: Change thickness of cursor

On a hires screen I find it really hard to see on which image the cursor currently is, because the rectangle around the image is very thin. Is it possible to increase the line width of that rectangle? ...

15 30 50 per page