All Questions

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

Org Mode - Live Preview and Mathematics

I write a lot of documents using Markdown in VS Code and it is convenient because you have live preview capabilities and also live preview math formulae, using, if I am not mistaken, KaTeX, and ...
1
vote
1answer
243 views

Academic research about Emacs

I am looking for academic research about Emacs. Any disciplines are interesting; psychology, economics, design, computer science including subdisciplines such as HCI and software engineering, ...
0
votes
1answer
11 views

How to search within current folder and sub folder (Spacemacs)

When I do space + s + P, I can search within the project which is cool. But I would like to search in current foler and subfolder. how to achieve that?
0
votes
1answer
22 views

make org “c-c c-c” actually do something useful on a simple line of text

how can one teach emacs to do something useful here? for example if the current line contains the word "FOO" anywhere, change it to whatever the string returned by special-lisp-function-001
0
votes
0answers
11 views

Fold all regexp matches

I'm working on email templates using web-mode, which – alas – requires inline styling galore… many of my opening tags won't fit on a single line even on a 4K-Display due to the massive amount of ...
0
votes
0answers
11 views

Using 122 key keyboards with Emacs

Does using a 122-key keyboard make it easier to use Emacs, in relation to having more keys to bind commands to? I am thinking of the various models on offer from Unicomp specifically.
0
votes
1answer
93 views

Sometimes Emacs gets stuck with non-working capslock key

I'm using Emacs 26.1 on Windows 10. Sometimes, the capslock key stops working: The key is activated but typing letters does not result in capital letters being inserted into a buffer. It works with ...
0
votes
0answers
14 views

Using dired via tramp on a remote machine

Maybe I am missing something rather simple but I completely fail to use dired on a remote machine. I can connect via ssh directly without emacs and I can edited a file using Tramp on the remote ...
0
votes
0answers
11 views

I want to type special Spanish characters in Emacs on a MacBook Pro keyboard … but I have no clue where to start

I am using Emacs 26.3 with macos Catalina and I would like to type the inverted exclamation point and question mark characters. Can someone point me to a link that will get me started towards ...
0
votes
1answer
19 views

Org mode 9.2.6 - Org agenda - match tags/prop/todo query hangs

After typing a keyword the command just hangs, regardless of the query. The trace is as follows: Debugger entered--Lisp error: (quit) org-add-prop-inherited("qpct") #[257 "\300!\262\301!\207" [...
0
votes
1answer
21 views

Org Mode - Targeted Expansion of Headings

In org mode with the headings collapsed you can go to each one and press TAB to expand it. Is there an easy way to not have to navigate to headings by using the arrow keys?
0
votes
0answers
24 views

Emacs 26.3 cannot call R

After updated to macOS Catalina (10.15) I've been trying to use R in Emacs 26.3. However, Emacs is not fetching R by using M-x R (Emacs says [No match]). I already checked the paths for both R and ...
1
vote
1answer
11 views

Spacemacs pdf-tools inverse search with keyboard possible?

I am running spacemacs and pdf-tools on Ubuntu 18.04. It does work quite well, however now I asked myself whenever there is an option to do inverse search (or to make a new command doing inverse ...
2
votes
1answer
14 views

How to ignore case when switching buffers?

I want to open a buffer called Echo.md and switch-buffer (C-x b) does not auto-complete it when I type echo because of the case. But find-file does auto-complete from lower-case to upper-case. The ...
1
vote
2answers
10 views

Convert text under a heading into an org-table

I am using spacemacs. I've written my shortcuts in an org file to not forget them. It has a structure of Description: key, then I go to the next line and enter the next command. For example *** Latex ...
1
vote
1answer
25 views

Simples regexp to match identifiers?

I frequently need a regular expression, that approximately matches identifiers in a given environment. Ignoring the "must not start with a number" requirement, this would mean e.g. [[:alnum:]_]+ ...
0
votes
0answers
8 views

Finding missing Ediff key bindings

I was just looking at the Ediff manual¹ for something, and it's one of those Emacs manuals that (a bit annoyingly) only list keybinds and not function names (so, if you have rebinding going on, you ...
0
votes
1answer
21 views

Python and electric-indent: newline autoindent disregards previous blank line

This is (yet) another question related to electric-indent-mode and Python, but since I couldn't find what I address here in the other ones, here we go. I find the behavior of electric-indent-mode ...
0
votes
1answer
9 views

Shortcut to actual previous line in markdown mode, or end of section

I use markdown-mode and often fold the tree. I sometimes need to go to the last line of a tree, e.g. if I adjust the tree heading and then want to work at the last leaf. I suppose a shortcut can take ...
0
votes
1answer
66 views

Preventing `TeX-command-run-all` from shifting focus

It seems that TeX-command-run-all shifts focus to the pdf window, which is quite annoying. Is there a way to prevent that?
1
vote
1answer
62 views

How to quickly revert the buffer?

revert-buffer is often slower than closing an opening the same file. I've noticed - for example, I can undo to the state of the file before reverting. While this might be useful in some cases, I ...
1
vote
2answers
263 views

Autocomplete after dot in python

I haven't used emacs before, but would like to learn how to use it properly for Python development. From the past IDEs I have used I enjoyed the feature to obtain information on possible objects ...
1
vote
2answers
22 views

Mark input in swiper-thing-at-point

Having some command automatically populate the input string is a great thing (particularly, I refer to the feature that swiper-thing-at-point provides). However, I would like to enhance this ...
1
vote
1answer
35 views

emacs -nw mode, when you paste in some text from another application emacs sometimes misses parts or stops halfway. how can I mitigate it?

In macOS in emacs -nw mode, when you paste in some text from another application emacs sometimes misses parts or stops halfway. Often I see a tilde as the last character entered, when there wasnt even ...
0
votes
0answers
10 views

Change color of preview expressions in Auctex

In the customize group "Preview Appearance", I click on "Preview Face" and set "Foreground" to "red". To the right, I see the word "sample" displayed in red. Then I select "Save for Future Sessions." ...
1
vote
1answer
23 views

Merging diffs/hunks

When using ediff, I often get conflicts like this: <<<<<<< variant A added_function_1 () { ======= added_function_2 () { >>>>>>> variant B <<<<&...
0
votes
1answer
22 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 ...
0
votes
0answers
15 views

How can I use evil-mc in spacemacs?

This question is a semantically similar question but the OP's intent was more about which implementation of multiple cursors was "best". I echo one of the commenters of that question who asked "Can ...
0
votes
1answer
17 views

Why does ido, when used with recentf, show candidates in the order it does?

Wanting to stay simple as possible I refrain from using Helm or Ivy etc. and use IDO. Ido-switch-buffer is supposed to allow me to access recently opened buffers quite efficiently with the help of ...
1
vote
1answer
15 views

How to prompt user for a proper writable file in Emacs Lisp?

I need to prompt the user for a file which is 1) not a directory 2) if already exists, is writable. I know I can use read-file-name, but I'm not sure how to filter out the improper files. ...
0
votes
0answers
20 views

Show headings only in sparse tree

I am generating a sparse tree typically using a regex (, / r ). What I am trying to do is get an overview of where in my document a match occurs, not the exact positions of the matches. So, if I have ...
2
votes
1answer
36 views

How to use `recover-session` and `dired-omit-mode` in Emacs 26 and lower?

Using Emacs 26.1, I have enabled dired-omit-mode globally with (add-hook 'dired-mode-hook #'dired-omit-mode). When using recover-session, I don't see any files. How to fix this? Creating a .dir-...
0
votes
0answers
14 views

Is it possible to use whitespace-mode without specyfing a background (or foreground) color?

I like having non-breaking spaces and a few other characters represented in my buffer as visible characters. The problem I have is that whitespace-mode seems determined to set the background color. In ...
1
vote
1answer
20 views

Org Mode - Stop Recurring Events From Appearing as Late on Agenda

I am using the org mode agenda and my issue is that recurrent scheduled items appear as late everyday. For example an event that happens every Tuesday will also appear every Wednesday as 1 day late, ...
1
vote
1answer
31 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?
0
votes
0answers
13 views

Doing grep on files after doing helm-grep-do-git-grep?

For example, you helm-grep-do-git-grep with foo Helm will give you list of matching lines. Let's assume there are 100 matching lines in 12 files. I want to do helm-grep-do-git-grep with bar on those ...
0
votes
0answers
38 views

defun to replace regex pattern with original pattern plus new line

I have written the following lisp code to search for a regex pattern and append new line to it: (defun readmode () (interactive) (goto-char 1) (while (search-forward-regex "\(</[a-z]+>\)" ...
0
votes
1answer
9 views

Automatically fixing bad indentation (Scheme-Lisp)

Let's say I make this code with bad formatting: is there an emacs command that can automatically fix indentation? I know this question has been asked a few times before, but all the answers I've seen ...
-1
votes
1answer
38 views

mark-whole-buffer followed by kill-ring-save not working correctly

I'm using Emacs 26.1 on MacOS. Instead of copying the entire buffer I get a warning: Saved text until "text where is stopped saving with whitespace seemingly to the end of the buffer " I'm ...
1
vote
0answers
70 views

emacs (exwm) freezing when inputing accented letters

I'm currently running a new install of exwm on a french laptop. Writing in french means I need to input accents. Those letters I can input using dead keys without any problem but I cannot use the ...
1
vote
2answers
30 views

Automatic periodic reload of all orgmode agenda files

I use about 15 orgmode agenda files, and a number of them I use passively only. Examples are my wife's agenda converted from Google calendar, a work agenda from Outlook and a list of git commits (...
1
vote
2answers
1k views

Unable to change cursor type in terminal

I'm trying to change the cursor type in Emacs. Here are the steps I'm following, C-h v cursor-type check the value of cursor type. It is set to t. start emacs with emacs -nw -Q and type (setq cursor-...
1
vote
1answer
15 views

Improving Etags support for fortran?

When using xref with Fortran I noticed that indexing by etags is highly incomplete; Almost exclusively subroutines (and maybe functions) are index, but modules, types, constants and global variables ...
0
votes
1answer
31 views

Stop company-lsp from completing function arguments

I try to configure lsp-mode and company-lsp with python-language-server for python autocompletion, but when I choose completion candidate it completes with function arguments. How can I prevent this ...
1
vote
1answer
28 views

Copy to PRIMARY selection in command

I'm a novice in Lisp, so I feel like I'm missing something very basic here. My intention was to create a function/shortcut to remove all whitespace and newline chars from the selected text and copy ...
1
vote
0answers
18 views

Org mode + table.el: Use Org formatting inside cells

Say I have a table in an Org document looking like this: (Source) +----------+-----------+----------+-------------------------------------------------------+ | Date | Day | Pages | ...
0
votes
1answer
16 views

Tramp x11 on Mac os (local) , centos (remote)

I understand that I should be able to use X11 to show graphs from a remote R when I use a local emacs to connect to the remote machine with tramp. I have tried a few different things but can not get ...
0
votes
1answer
37 views

In markdown-mode cursor goes to beginning of line when I type certain characters

In markdown-mode the cursor goes to the beginning of a line whenever I type any of (),[]{};:, this happens in both GUI and command-line emacs, this only happens in markdown-mode. How do I stop this ...
3
votes
1answer
58 views

Run R code on selected object

I am missing (or not aware) of a feature in ESS to run some R code on selected text. When editing a script, like df1 <- data.frame(a=1:100,b=rnorm(100)) I often want to see head(df1) in my ...
0
votes
1answer
37 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 ...

15 30 50 per page