All Questions

Filter by
Sorted by
Tagged with
7
votes
2answers
363 views

Org mode quote block indentation (highlighting)

Can indentation of the Org mode quote block be configured? I would like to highlight quote blocks with indented margins, both left and right if possible: The example above demonstrates org-quote ...
1
vote
0answers
27 views

How to supress transforming link names by org-export to html?

The HTML export of an org file transforms the links to "to equivalent HTML links in the output" How can I suppress this? I want to keep the same link names. Example: If we have this org file. ** ...
0
votes
1answer
42 views

Binding simple keys in spacemacs

I would like to set a projectile find file function to the hotkey C-e, and a elpy-goto-definition function to the hotkey F12, but I'm not sure why spacemacs is not recognizing the config that I'm ...
1
vote
1answer
26 views

How to update lsp-java manually?

I'm trying to run a simple HelloWorld from Emacs using dap-mode commands dap-debug and dap-java-debug but prompted the error saying lsp-request: No delegateCommandHandler for vscode.java....
3
votes
1answer
860 views

Custom sorting for agenda

I'm trying to build custom agenda block which would sort completed tasks by CLOSED property. org-agenda-sorting-strategy only supports ordering by SCHEDULED and DEADLINE properties, so I guess only ...
2
votes
0answers
13 views

How to set font failover for Vietnamese characters

To display a text "tiếng Việt" (which means Vietnamese), I tried this: (set-fontset-font t '(#x1e00 . #x1eff) "Consolas") but it did not work. describe-char shows: "ế" ⇒ 1ebf "ệ" ⇒ 1ec7, so they ...
2
votes
1answer
45 views

Trouble while using string-match with rx expression

I'm trying to write a function that takes a string and returns non-nil if it's the word do not followed by the character :. Something like this: (string-match (rx "do[^:]") input) but I get the ...
1
vote
1answer
16 views

customize js2-mode switch indentation

This is pretty simple but it's thwarting me: this is how a switch statement indents in js2-mode switch(letterGrade){ case "A+": value = 100 ; break; case "A": value = 97 ; break; ...
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
44 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
17 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
39 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
29 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
31 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
47 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
99 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
22 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
10 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
90 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
126 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
50 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
797 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
30 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
15 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
340 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 ...

15 30 50 per page