All Questions

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

how to get line wrap to had return at puncuation

I've see a few similar questions: Editing files with one-sentence-per-line https://stackoverflow.com/questions/41637313/how-to-make-a-function-that-straights-out-each-sentence-in-a-paragraph-to-...
0
votes
0answers
12 views

run shell command interactively and insert final output into main buffer

I'm something of an Emacs newbie. I would like to run a shell script I've written and insert the output into the buffer I'm working in. But the script requires some interaction, so ideally I'd like ...
0
votes
0answers
9 views

How can someone set Emacs / Spacemacs to prefer OTF font over TTF font when both are available?

Recently the nixos fira-code package added both the otf and ttf fonts and Emacs/Spacemacs isn't quite happy with the ttf ones. How could I tell spacemacs to prefer OTF over TTF when both are ...
0
votes
0answers
6 views

Resetting org-mode “headline” to latex “section” mappings (and more)

Say I have a notes.org file with the following structure: * year1 ** semester 1 *** module 1.1.1 **** <notes for module> *** module 1.1.2 ** semester 2 *** <modules> * year2 ** <...
1
vote
2answers
11 views

Howto cache completing-read inputs

Is there a simple framework for making previous inputs of completing-read persistent across emacs restarts? For instance if I start with: (completing-read "test:" '("a" "b") nil nil) and enter "c" ...
0
votes
1answer
11 views

Specific file for pooling tags in org folder

I'm trying to organize tags among many org files. I have a few tags defined in init.el through org-tag-alist and other tags placed at top of files. I would like to set a tags.org file for tags in ...
0
votes
1answer
54 views

Unusual behavior when overriding `calculate-lisp-indent'

I've modified calculate-lisp-indent as a better solution to the indentation questions here, here and here. By "modified" I mean I overrode the function with advice. After doing this when I restarted ...
1
vote
1answer
17 views

Replace placeholder by incremental value

Windows 10 Emacs 26.1 I has the next text [ { "id": N, "name": "Agent#N", "address": "N Tabernacle St, London EC2A 4DD, UK" }, { "id": N, "name": "Agent#N", "address": "...
0
votes
1answer
29 views

No `emacsclient` binary when building from source

I have built Emacs from source and, after make ends successfully, no emacsclient binary is present in the output (./src) directory. What is the recommended way to get the emacsclient binary in this ...
0
votes
1answer
8 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
10 views

How can I 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
26 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
6 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
22 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 ...
1
vote
0answers
15 views

C-< and C-, keys are echoed as C-\ in no-window mode

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
26 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
6 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
14 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
53 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
17 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
20 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
19 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
25 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
33 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
30 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
17 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
29 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
72 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
33 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
49 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
18 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
23 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
7 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
16 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
29 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
11 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
34 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
45 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
11 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
17 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?

15 30 50 per page