All Questions

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

AUCTeX preview fatal error

This is a minimal test file: \documentclass{article} \begin{document} \[1+1=2\] \end{document} The content of texput.log is the following: This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live ...
0
votes
1answer
141 views

custom-theme-set-faces does not work in emacs 27

I have some custom theme settings like (package-initialize) (load-theme 'leuven t) (custom-theme-set-faces 'leuven '(Man-overstrike ((t (:foreground "red3" :bold t))) t) '(Man-underline ((t (...
0
votes
1answer
83 views

Finder of MacOS Catalina cannot open a file with Emacs

After upgrading to macOS Catalina, Emacs (v26.3 from GNU Emacs for Mac OS X) works very strange. Without Emacs already running, Finder can open a file with Emacs as usual. But once Emacs.app is ...
1
vote
2answers
12 views

Cannot open remote file with TRAMP

I'm trying to connect and edit files on my openwrt box. But every time I tried Emacs shows me a blank buffer. C-x C-f /ssh:user:192.168.200.1:/etc/config/network RET the filesystem on openwrt cat /...
0
votes
0answers
12 views

How to remove a package listed as dependency?

Is it possible programmatically remove a package via elisp, which was pulled as dependency from a third package? If so how can I achieve that? I'm using use-package to manage my packages. Any ...
0
votes
0answers
23 views

Treat all numbers as floats

Is there a way to get elisp to automatically treat all numeric variables as floating points without having to repeatedly use the float function? For example to a division function that outputs the "...
0
votes
0answers
6 views

How to instruct reftex to automatically pick the .bib file in local directory?

Whenever I press C-c [ in the main.tex file I get the message No valid bibliography in this document, and no default available. How do I set the default? Using helm-bibtex seems way to easy, using the ...
0
votes
0answers
6 views

Color for important entry in global TODO list

In Org Agenda, I use Org priorities to know when I should get on something (A=now, B=soon or C=later). I use :STYLE: property with a custom important value for some entries (no matter when I need to ...
1
vote
2answers
20 views

How to count direct or indirect children in org or outline mode

I want to count the number of children in a subtree in org-mode. I am able to count the number of recursive children with (outline-next-heading): (defun outline-count-subheadings (&optional ...
0
votes
1answer
62 views

Export to HTML presentation using reveal

I'm completely new to Emacs (just saw a presentation made with that using export to HTML presentation via reveal). I'm not able to find a way how to setup Emacs to show the option Export to HTML ...
0
votes
3answers
69 views

Complex searching and replacing

Suppose I have following pattern: throw "some message"; which I'd like to replace with: throw new Error("some message"); So, "some message" part should not be changed (or copied as is), and ...
0
votes
0answers
30 views

How to transform abbrevated dates in org table

The input column represents the year without 201 and month and day without leading zeros. I must transform these into full date strings. After a couple of hours to take step 1, I'm wondering if there ...
1
vote
0answers
12 views

Search for functions by type signature

Is there a convenient way to search through a C/++ codebase and list all the functions with matching type signatures? I'm working in a codebase that makes heavy use of function pointers. ...
1
vote
1answer
57 views

Search and replace two consecutive newlines

Running spacemacs 0.200. I am sorry if it is too basic. But I am just not able to get this. How do I convert two consecutive newlines with some text, say, 'there were two newlines here'? I could ...
0
votes
1answer
50 views

Search and replace isn't working in my function

I created the following function to remove macrons from vowels (this is a reduced version that only searches for the vowel "ā"): (defun nv/eliminatemacron () "" (interactive) (save-excursion ...
2
votes
1answer
26 views

(Company) Doc Buffer ignoring scroll-other-window

I'm trying to write my own backend for a certain tool language that has no repl. Hence, I thought it would be the best idea to parse the documentation and store it as a hash table (I'm open to other ...
0
votes
0answers
7 views

navigate into the project

I have lost my emacs config and I try to reconfigure my .init.el on my work station. I have install helm and defined : (global-set-key (kbd "C-x C-f") 'helm-find-files) I have the good windows, but ...
5
votes
3answers
2k views

Move point to previous/next parent heading

This answer describes how to move point to the next or previous heading. I would like to move point to the next or previous heading, which is one level higher up the tree (at the parent level). For ...
1
vote
1answer
45 views

Commands with Keybindings only

When I run helm-M-x and enter characters, I like to see only those commands which has key-bindings. How I can achieve that? I like to have reverse functionality as well, ie.. commands without key-...
0
votes
1answer
150 views

Newlines swallowed by org-capture

I irregularly see that org-capture has led to the disappearance of a newline, leaving me with lines like these * meeting w/ ch. <2017-12-01 Fri 11:00>* reading group <2017-10-09 Mon 16:15 +...
0
votes
1answer
14 views

Problem with emacs and sagemath unicode

I am using Emacs (GNU Emacs 24.5.1, which is admittedly old, but the problem also exists on a newer (25 something) Emacs on a different machine) and sage-shell-mode to work with the computer algebra ...
1
vote
1answer
46 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 ...
7
votes
7answers
527 views

My left pinky hurts. Can I press another key to act as Control?

My left pinky hurts due to repetitively pressing the C button when using Emacs org mode. Not working with Emacs is out of the question, but it needs some rest. I would like to change theC key for ...
0
votes
0answers
17 views

How do I center the title when exporting org file to HTML

#+TITLE: Hello World #+AUTHOR: A. U. Thor #+HTML_HEAD: <link rel="stylesheet" type="text/css" href="style.css"/> #+HTML_DOCTYPE: html5 currently gives me this as output where the title is ...
0
votes
2answers
72 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 ...
37
votes
2answers
7k views

Weird shell output when using IPython 5

I just upgraded to the latest version of IPython and now something is wrong when using it in emacs. When using it in a regular terminal it works fine (colors, tab-completion, etc.), however either ...
0
votes
0answers
32 views

Retouching syntax highlight of major mode

I am writing a minor mode to complement haskell-mode, and I am trying to color subwords in camelCased identifiers with slightly different shades of the same color. Perhaps this can be done by "...
0
votes
2answers
127 views

a function to grep specified files?

My Emacs customizations reside in a few separate .org files, all in the directory ~/emacs-prelude/personal. I'm always searching these files to find and change settings. How can I define a function ...
2
votes
1answer
23 views

How to export to PDF with blocks that respect indentation AND subscripts?

How can I export so that both subscripts and indentation are respected? For example, using QUOTE will respect special characters like subscripts, but will ignore spacing. The opposite is true of ...
4
votes
4answers
1k views

How to search in multiple files with Emacs without grep?

There is a folder with many sub-folders, files and I would like to search for a given piece of text in all of these files with Emacs on a Windows 10 machine. (I know about M-x grep, but it does not ...
2
votes
0answers
14 views

Page thumbnails for pdf-tools?

Q: is there an image-dired analog to make thumbnails in pdf-tools? image-dired provides facilities to browse images in a directory by thumbnail. Is there analogous functionality for pdf-tools? The ...
0
votes
0answers
7 views

Evil/spacemacs bindings in image buffers?

I see from here: Shrink/Zoom/Scale images in image-mode that image-manipulation is possible with additional packages. Now, I am not yet at a point in my emacs life where I want to do image editing in ...
14
votes
1answer
4k views

How to Restore File System Access in macOS Catalina

I updated to macOS Catalina which requires the user through pop-ups to allow any app trying to access the file system for the first time. No such pop-up is appearing for Emacs. Running the script ...
1
vote
1answer
13 views

Add a group of options in a Magit transient

I would like to add a group of options to a transient, but I cannot figure out the POS parameter I should use. (transient-append-suffix 'magit-push "-n" ;; after the last option of the first group [...
0
votes
0answers
8 views

Show effort and clock time in agenda view

I use Org mode for my to-do list, clocking, and setting effort estimates. I can show the effort estimates for tasks scheduled for today with the columns view and this setting (thanks to this thread): ...
1
vote
0answers
21 views

How to set posframe as active?

Is there some option to make frame active when i create it? I can switch to it with this code, but maybe there's a way to do this without select-frame func? (defun show-misc-posframe () (when (...
0
votes
0answers
22 views

TRAMP mode hangs while copy large file from remote to local via Ssh

Trying here to download (scp file from remote to local) that was considered large file, then Emacs tried to compact it, then got stuck. Even used scp command to do it because copying via ssh got ...
0
votes
1answer
36 views

Modifying the size of an asymptote image in latex export

I have been using Asymptote to make pictures that can be included in Latex documents. I recently discovered that Org mode plays well with Asymptote https://orgmode.org/worg/org-contrib/babel/...
0
votes
0answers
56 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 ...
2
votes
1answer
55 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:]_]+ ...
1
vote
1answer
23 views

Scilab-mode syntax highlighting

I'm trying to install (and run) scilab-mode, but the syntax highlighting does not work when I open .sci or .sce file. I use the exact configuration described in the scilab.el package. https://www....
0
votes
1answer
21 views

Why does emacs on a remote computing cluster behave differently depending on how the cluster is accessed?

I use SSH to work on a Linux computer cluster, emacs is my preferred text editor there. My local computer is a Windows 10 machine. If I use PuTTY to access the cluster remotely, when I run emacs, it ...
2
votes
1answer
211 views

Equivalent to `ido-find-file` functionality for ivy/counsel?

I really like how ido-find-file, if it can’t find a file matching your string (and you’ve let it idle for like a second), will search your whole home directory for files matching that string, and then ...
0
votes
1answer
13 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 ...
1
vote
1answer
31 views

How to tell Occur to show the line in the top of the buffer

I usually use occur to make an index of the beginning of different things. When I jump to the occurrence, Occur shows the line in the middle of the buffer. How can I instruct occur to show the ...
0
votes
1answer
20 views

Move specified lines down with C-(N) C-n

I could move next 4 lines with C-u C-n, Additionally, try to move next 6 lines with C-6 C-n, but it did only one line down in effect. What's wrong with my usage?
1
vote
3answers
27 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 ...
0
votes
2answers
34 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
1answer
21 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 ...
2
votes
1answer
57 views

Jumping from a source block to the tangled file

Is there an inverse of org-babel-tangle-jump-to-org allowing one to jump from a source block to the corresponding place in the tangled file?

15 30 50 per page