All Questions

Filter by
Sorted by
Tagged with
2
votes
1answer
499 views

Migrate php-mode configuration to web-mode

I currently have my php-mode configuration like so: (require 'php-mode) (add-hook 'php-mode-hook (lambda () (require 'ac-php-company) (company-mode t) ...
1
vote
1answer
84 views

set js-indent-level from .eslintrc?

when I edit javascript, I'm usually actually editing someone else's code. Is there a way to dynamically set the value of js-indent-level from a .eslintrc file?
1
vote
1answer
39 views

How to prevent deactivating the region after a command?

When a function is called on a region, I want a visual indication of affected area (a blink for ex.). Say, I've written a function upcasing previous word, and after evaluation I immediately get the ...
1
vote
1answer
18 views

Modifying ruby-mode indentation

Currently, ruby-mode in Emacs 27 indents the following snippets like this: expect(foo).to match( bar ) expect(foo).to \ match(bar) Is there a way to ...
0
votes
0answers
10 views

Org Mode Clock-In Task Showing Void Function Definition

When trying to clock in a task in org mode I am getting this error: Troubleshooting so far: tried erasing .elc files from elpa org directory and re-loading. Tried updating org mode. Update failed (...
11
votes
2answers
1k views

Is there a nice way to write pseudocode?

I'd like to sketch out some pseudocode and then share it with other people that won't be using emacs. Is there a nice way to do this? I'm trying to do it in org-mode, but it's not indenting properly, ...
0
votes
1answer
22 views

Org-mode: Using sparse tree to search through timestamps (non-scheduled, non-deadlines)

I am aware that I able to use sparse tree to search "[b]efore-date" with C-c/b or search "[a]fter-date" with C-c/a. However, I recognise that seems to only be with dates that are schedules or ...
3
votes
0answers
43 views

How to increse the number of undo steps stored by emacs?

Looking into undo, there are variables: undo-limit, undo-strong-limit, undo-outer-limit. While I can blindly set these to a big number and hope for the best.Whats a good rule of thumb for setting ...
0
votes
0answers
16 views

Fringe value not taking effect until I switch buffers

I'm not quite sure how best to describe what's going on. I have the following lines on my init.el file. (setq-default left-fringe-width 40) (setq-default right-fringe-width 40) I expect this to ...
0
votes
1answer
37 views

Accessing HTTPS sites with mac emacs 26.3

I'm working on a mac (Catalina 10.15.1) and I've recently switched from Aquamacs to GNU Emacs (updated to 26.3 build 1). In Aquamacs, I had no issues accessing https sites, though I'm unable to do ...
0
votes
1answer
28 views

Retrieve past command from Emacs history using first letter of command

In Vim I could retrieve past commands by typing :<first-letter-of-command>↑ . If my Vim command history is:- colorscheme + source % shell set spell colorscheme? bp term Typing :s↑ directly ...
5
votes
1answer
146 views

Syntax highlighting is breaking in long bibtex files (spacemacs bibtex layer)

So I have a long papers.bib bibtex file that I edit with emacs (spacemacs bibtex layer), but the syntax highlighting only ever goes about halfway down. Here it is at about line 790: Other times this ...
3
votes
2answers
653 views

Emacs relative and absolute line number at the same time?

I don't mean hybrid line number mode, I want the absolute line number appears for all the lines, not only the current line number.
0
votes
0answers
8 views

Why do Bongo icons show up in GNOME but don't show up from window manager?

When I start bongo from GNOME using the leuven theme (load-theme 'leuven), I can see the icons quite clearly: From the Window manager I instead see: What is GNOME doing to let me see these icons? ...
2
votes
1answer
267 views

AUCTeX Preview rung error

I'm new to emacs and AUCTeX and I'm having a problem with document preview (C-c C-p C-d). My LaTeX file is the following \documentclass[11pt, a4paper]{report} \usepackage{cite} \begin{document} \...
1
vote
3answers
30 views

How to create loops for inserting text?

Imagine I want to create a list with 10 items, i. e. 1. 2. 3. ... 10. In Vim I can use the command :for i in range(1,10) | put =i.'. ' | endfor for this. How can I do the same thing in Emacs? ...
7
votes
1answer
457 views

How to get org-mode fully support Arabic language for export?

My intention is to write Arabic document using org-mode. Please consider the following MWE, given that my configuration in init.el has below code to enable writing of Arabic script from right to left (...
1
vote
2answers
45 views

Show me where cursor is

At home, I use Emacs on a large monitor, and I often switch between it and the browser. Sometimes, when I come back to Emacs, I lose between 1 and 5 seconds finding where current point (the cursor) is....
0
votes
1answer
18 views

Why does Emacs not enter the debugger when popping a cons twice?

I wrote some LISP code that was wrong because I was trying to pop a cons twice: (let ((pair '("a" . "b"))) (let* ((a (pop pair)) (b (pop pair))) b)) Evaluating this in the *scratch* ...
0
votes
0answers
15 views

Emacs source results default format

In the org manual, one of the classes of options for the :results header argument is "format". The default seems to be a #+RESULTS block followed by the results prepended by a colon, for example, #+...
2
votes
1answer
47 views

Saving file resets executable bit

I have a file setup.py created with Emacs and I set 744 permissions to it: $ ls -la total 8 drwxr-xr-x 3 user staff 96 10 Dec 20:49 . drwxr-xr-x 6 user staff 192 10 Dec 20:47 .. -rwxr--r-- 1 ...
1
vote
1answer
48 views

Org mode refiling gobbles a newline and absorbs the next heading

I often have this problem in Org mode: I write an item with org-capture, refile it, and days later I see a result like this: *** TODO some task some notes** StackExchange I believe that the problem ...
0
votes
1answer
21 views

Additional Keybinding for RefTeX to add new bibliography entry

Nowadays I often insert @Online entries into my bibliography files. Unfortunately, the RefTeX doesn't have the Online-Entry bound to any key by default. I tried to add something like ;; I often use ...
0
votes
1answer
30 views

Whitespace mode settings on per major mode basis

When I open the Linux Kernel code, my default indentation conflicts with the desired formatting of the Kernel. I use Emacs Prelude, so I added the settings from this link to my c-mode-common-hook. I ...
1
vote
2answers
96 views

match-data fails to consider only last search with string-match and persists across sessions

Using emacs 25.3.1, I am trying to access the match data after I search a string with string-match. But the match data is wrong. To find out why I tried out the manual's simple example. (string-...
0
votes
0answers
14 views

Editing and viewing timestamps in Global TODO in Org Agenda

When viewing alltodo's (M-x org-agenda RET t), is it possible to see and edit Scheduled/Due dates? I understand that the list of TODOs can be very long and therefore seeing timestamps could clutter ...
1
vote
1answer
143 views

How to export top level trees in an org file to corresponding files?

Executing the following code should create, for each top level tree in your file ~/tmp/file.org, an other file in ~/tmp named after the tree heading and containing its content. Problem: it does not ...
0
votes
1answer
21 views

How to search by tags in org-mode

Here is a simple file: #+TAGS: math(m) music(u) * Gödel :math: * Bach :music: * Gauss :math: * Beethoven :music: * Mozart :music: Then I tried M-x org-tags-view Match: +math I expected that Gödel ...
1
vote
0answers
9 views

Company-mode slow in ESS

When using (i)ESS, I would like to function/variable/argument/filename completion on demand using the minibuffer, without triggering the company pseudotooltip front end. I have tried the following: (...
2
votes
2answers
49 views

How to extract text properties into a string?

Is it possible to separate text properties and convert them into a string? For example, with a string with properties: #("gfsd \"fsgfd\" sdfdsgfs \"fsdfs\"s sfg fdg fdffffffffffffff" 0 5 (fontified ...
0
votes
1answer
77 views

How to use 'glossaries' package in aquamacs, or I mean how could I run makeglossaries in aquatics

I find the instruction from enter link description here as given below \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{glossaries} \makeglossaries \newglossaryentry{latex} { ...
2
votes
1answer
89 views

org column view with date calculations

* TODO fix this bug asap :PROPERTIES: :UPDATE: writing test cases almost there! :LASTUPDATED: 2019-11-25 :DEADLINE: 2019-11-30 :END: * TODO update that documentation :PROPERTIES: :UPDATE: updating my ...
0
votes
1answer
125 views

setting default columns in org column mode into init file

Trying to set preferred columns in ORG column mode. this works perfectly if I put it on head of the file: #+COLUMNS: %45ITEM %TAGS %PRIORITY %TODO %CLOSED %SCHEDULED But I avoid to repeat it for ...
1
vote
1answer
55 views

Cannot run cquery

I have been using rtags as my primary C++ mode, but I found that it's performance is not satisfying for large code bases e.g. Linux kernel. It takes more than 5 seconds to find definitions. This it ...
0
votes
1answer
18 views

Helm: copy file to bookmarked directory

I am using spacemacs. I want to achieve similar thing to the one in question browse through bookmarks in dired. I would like to be able to quickly choose an alternative destination from within the ...
0
votes
0answers
18 views

Error during installation of Magit: "el-get: make el-get could not build transient [make EMACSBIN=c:/Users/…/emacs-26.1-x86_64/bin/emacs info]

In this folder ~/.emacs.d/el-get/transient (master) there are following files for transient ./ ../ .git/ .github/ .gitignore default.mk docs/ LICENSE lisp/ Makefile README.md then run runemacs --...
0
votes
1answer
40 views

How to debug Java Web Application

I am trying to debug my java web application (using emacs), but I am having issues setting it up to connect with the debug port. Within emacs I have installed both lsp-java and dap. The debug port ...
6
votes
4answers
793 views

Have Ctrl-a increase a number just like in vim

In spacemacs Ctrl-a is being used to move to the beginning of the line. I'm more used to 0 to move to the beginning of the line and $ to the end, which works in spacemacs. Ctrl-a increases numbers in ...
0
votes
0answers
10 views

Electric pair delete with text between?

Suppose I have the piece of text (hello world). How can electric pair be made to work such that deleting the opening parenthesis automatically deletes the closing parenthesis? Some examples (the ...
0
votes
0answers
29 views

Code Folding in ELPY Not Working

Gents, I used several IDEs for Python. I like Spyder, but I have have been a pretty obsessive Emacs user for a LONG time. I install ELPY. It works very well for my needs. However, I cannot get ...
1
vote
0answers
12 views

RefTeX won't find bibliography file

I asked this question already on TeX.SE, but I think, it is more related to Emacs.SE. I am using the latest Aquamacs on MacOS (and I am wondering why all these emacs-related questions are posted in ...
3
votes
1answer
339 views

Export all org-mode sections as Beamer frames?

Is there a way to have all of my Org-mode sections export as Beamer frames? For instance, if I have a document like * A ** B ** C then I would like a slide for each of A, B, and C. Setting H:2 gives ...
0
votes
1answer
18 views

Org mode attachments: how to change the default directory for added attachment folders?

I am using org mode and its attachment functionality, letting me make a directory attached to a task (C-cC-as). The default folder is not the one I would like it to be. How can I change the default ...
1
vote
1answer
24 views

Can “advice-add … :filter-args” detect if the advised function was called interactively?

Using advice-add from nadvice.el, I am trying to add a :filter-args advice to an interactive function. Is it somehow possible for it to detect, whether the advised function has been called ...
1
vote
2answers
26 views

How to compare an item against others, that's compatible with string-equal?

When comparing the last-command against multiple possible strings, it doesn't seem possible to use the member function. Is there a way to simplify this using something like member? (when (or (...
0
votes
1answer
41 views

cursor color depending on insert or overwrite mode

how can I change the cursor color depending on insert or overwrite mode? I looked at this page https://www.emacswiki.org/emacs/ChangingCursorDynamically and put as recommended 3 lines in the Emacs ...
0
votes
1answer
67 views

org-mode table/matrix in latex export

I have an issue when exporting a table using *matrix environments. The align string appears in the cell content, whatever it is specified or not #+CAPTION: my matrix #+ATTR_LATEX: :mode displaymath :...
5
votes
1answer
141 views

(progn (scroll-up 1) (goto-char 0)) is different from (scroll-up 1) then (goto-char 0)

In any buffer, try to eval-expression the expression (scroll-up 1) and then eval (goto-char 0). The window scrolls up, then point is moved to the beginning of the buffer. Now, try eval-ing (progn (...
0
votes
1answer
26 views

Using evil and org-mode, as my file size grows, there is increasing delay in any command that changes text

There is only delay when changing text: navigation all works instantly, as normal. The delay has gotten to about one full second now, it's getting pretty bad. The file is around 15,000 lines long, ...
1
vote
1answer
77 views

Possible to use emacs-undo/redo without keyboard-quit? (Ctrl-G)

Having run into a bug with undo-tree, I'd rather use emacs default undo. Mapping undo to undo-only and redo to undo. This requires pressing Ctrl-G then undo to effectively redo an operation. Is ...

15 30 50 per page