All Questions

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

Translate TAB with C-q TAB [duplicate]

I'm an amateur in Emacs and I would like to change TAB with C-q TAB. I used the code: (define-key key-translation-map (kbd "TAB") (kbd"C-q TAB")) But by doing so, I need to press TAB twice in order ...
0
votes
1answer
143 views

can TAB behave like M-i?

I'm fairly new to aquamacs/emacs and while editing I noticed that it indents however it wants. In order to indent the way I want I end up using M-i, but that is pretty cumbersome. So, how do I make ...
22
votes
5answers
10k views

Browser-style 'tabs' for emacs?

I would like tabs like firefox but for emacs. I found this: http://emacswiki.org/emacs/TabBarMode But it just add to each buffer (window in Emacs terminology) a bar that shows currently open buffers....
2
votes
0answers
32 views

Dynamically hide lines indented more than current line

Is there a way to dynamically hide lines that are indented more than the current line? For example, if I am looking at this file { "a": 1 "b": { "c": { "d": 2 } } } and I am on ...
1
vote
1answer
51 views

How to disable the “Press M-x…” title line of org-search-view command's output?

I use GNU Emacs 26.1 and want to remove the following enormous message Press ‘M-x org-agenda-manipulate-query-add’, ‘M-x org-agenda-manipulate-query-subtract’ to add/sub word, ‘M-x org-agenda-...
0
votes
0answers
22 views

Proper way to use use-package and hooks on Auctex package

I'm learning how to use use-package, and I've some troubles to make it work with the Auctex packages (all the other packages are fine). I made my own function configure-viewer that basically adds a ...
0
votes
0answers
18 views

emacs display anomaly in Jupyter notebook terminal

When I use emacs in Jupyter hub terminal to edit a file, emacs seems to always insert an extra sequence of characters: 0;276;0c before the actual content. Also, after exiting emacs, the terminal ...
0
votes
0answers
40 views

How to get a list of all folder names under a folder?

I have a folder structure like this,i want get a list that all folder names in pack folder. Then traverse the list and load them ├── pack │   ├── completion │   │   ├── company │   │   │   └── pack-...
0
votes
1answer
27 views

Write a function that runs another function after adding a hook

I want to run some function f after adding a hook to a mode and after running f remove the hook that I added, returning the result of f if there is one. Here is a non-working version that I hope ...
6
votes
6answers
2k views

How to open a external terminal from emacs

Brand new emacs user here. I want to have the ability of opening a terminal with current file path from emacs, like what the open terminal here package does in sublime text 2. By terminal, I mean a ...
3
votes
3answers
247 views

Trace calls to a function with the parameters

I need to track the calls to org-tags-view to discover the params passed to it. I tried an advice: (defun his-tracing-function (orig-fun &rest args) (message "org-tags-view called with args %S" ...
0
votes
0answers
11 views

JSON multiline String with line wrapping?

I have a JSON file with an object containing a long String with linebreaks \n like so: { ... "subtitle": "**Thesis:** 1-Loop Anomalous Dimensions of 4-Quark Operators\n\n Specializing in ...
0
votes
0answers
13 views

Sum column Duration in all rows that in column Task = “T-339”

Windows 10, Emacs 26.1 | | Start date | End date | Task | State | Duration (hours) | |---+------------------+------------------+----------+-----------+------------------| | # |...
1
vote
1answer
25 views

Basic quote regex for font-locking?

I have my own font locking that highlights quotes in comments eg. /* Some comment 'this is quoted' * more 'text in an escaped \` quote'. * Plurals such as Moe's or Joe's should work too. */ ...
8
votes
2answers
5k views

org-mode: How to export underscore as underscore instead of highlight in HTML?

I am using org-mode, and the document I am writing has a table name whose name looks like this: tab_weekly_report. When I export the document to HTML, I expect the name to exported as ...
14
votes
2answers
909 views

Orgmode export: how to prevent a new line for comment lines

Currently my orgmode (v8.3.4), when exporting to LaTeX (and maybe other formats but I haven't checked), generates a new line for a comment line or a block of consecutive comment lines. This is ...
0
votes
0answers
17 views

Org-mode - Custom agenda: include subheaders of scheduled headers

I try to use org-mode for scheduling weekly tasks in my university. Say I have this timetable: * Mon: ** Subject A: *** Ex. 50 *** Prepare presentation ** Subject B: **...
3
votes
3answers
96 views

Get Emacs to jump to the start of a word after isearch

If I use isearch to search for the word "accommodating" in my document, I have to type acc before the cursor jumps to the word. When I press enter the cursor is on the the second "c" as in ...
0
votes
3answers
46 views

use-package can't load package at startup

When I start Emacs I get the error message Error (use-package): Cannot load counsel But when I open init.el in a buffer and run eval-buffer everything works fine. What I'm doing wrong? My Emacs ...
1
vote
0answers
23 views

use-package org-mode :hook is being ignored

I'm currently running this version of Emacs: GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.7) of 2019-04-11, modified by Debian I'm attempting to use use-package to configure the ...
12
votes
5answers
9k views

how install emacs 26 (or whatever latest ver) on mac

Someone (in another SE answer) mentioned a feature thats only available in 26, so I guess now I gotta upgrade. How do you install emacs 26 on macOS Sierra? What I tried: Googled how install emacs ...
0
votes
1answer
30 views

“call-process” hangs and does not launch the program

I’m dipping my toes into reading news with Gnus. I’d like to continue using the same editor as before for composing posts, so I put these forms in my gnus.el: (setq message-tab-body-function 'edit-in-...
0
votes
1answer
40 views

bind german mutated vowel keys to functions

I have a German keyboard and would like to bind Isearch to C-ö. How can I do this?
1
vote
1answer
16 views

With “japanese” input method, unmap kanji selection via the spacebar?

In emacs-26.1, I am enabling the Japanese input method as follows ... (toggle-enable-multibyte-characters 1) (set-language-environment "Japanese") (set-input-method "japanese") (setq coding-system-...
1
vote
0answers
17 views

company doesn't pop up completion list automatically

I'm trying to get company mode to automatically trigger the pop-up with a list of possible completion. Unless I'm doing this wrong this is not the default behaviour? Current I have to run M-x company-...
0
votes
1answer
37 views

How to disable semantic highlighting in lsp-mode?

Language server mode has a variable for semantic highlighting lsp-ht, I would like to disable all syntax highlighting in lsp-mode, is this possible. (setq lsp-enable-links nil) (setq lsp-enable-...
1
vote
1answer
92 views

Client certificate for access to imap server in gnus

We're in the process of changing mail servers. The new one will require a client certificate from our internal CA for all connections. How can I make gnus use a client certificate in the connection? I ...
2
votes
1answer
38 views

Adding day to %t in orgmode capture template

Complete novice here to Emacs and OrgMode. I've created a capture template (.txt file) that takes 1 task and returns a list of 3 subtasks that need to be completed. I have been able to get the ...
0
votes
1answer
65 views

Org capture template output to two files

I am currently using two separate Org files to manage my work Todos. One is a file that I edit directly and keep notes on each todo task (Work.org). The other is a schedule file which is synced with ...
0
votes
0answers
17 views

Window configuration gives “Args out of range: 0”

I have the following forms in my ~/.gnus.el: (gnus-add-configuration '(summary (horizontal 1.0 (group 0.25) (summary 1.0 point)))) (gnus-add-configuration '...
0
votes
1answer
33 views

how to append arbitrary string to yasnippet placeholder field

I would like to know how to append a default string to a placeholder. For example, I currently have: # -*- mode: snippet -*- # name: render template # key: rt # group: Flask # contributor: Jon ...
11
votes
2answers
978 views

Make emacsclient create a frame only if there isn't one already

How can I make emacsclient -a '' -n create a new frame only if there isn't one already? The problem with the -c flag is that it creates a new frame every time. The problem without it is that if there ...
0
votes
1answer
110 views

How to execute elisp commands

Related Question Hi, I want to give an elisp command which extracts the words between two arbitrary symbols. I searched google for elisp and the first item was emacs lisp, which I guess it means a ...
0
votes
0answers
19 views

Helm source from a hash-table

I want to build a helm-source from a large hash-table, is there a smarter/faster way to to this, than the way described below? (setq tab #s(hash-table size 16 test equal ...
1
vote
1answer
37 views

Org-babel python with session breaks output

If I run the following code block: #+BEGIN_SRC python :results output print(" /|") print(" / |") print(" / |") print("/___|") #+END_SRC I get the result as expected: #+RESULTS: : /|...
1
vote
1answer
180 views

running emacs as a daemon does not load custom-set-faces?

I am starting with emacs --daemon in my session, and it seems to trigger some odd behavior regarding themes and faces. I am using this solarized theme but I have found it to have weird cursor issues. ...
0
votes
1answer
20 views

org-habit : time-dependent habit

For instance, I have the following habit "sleep before 23h" ** TODO sleep before 23h SCHEDULED: <2019-09-07 sam. 23:00 +1d> :PROPERTIES: :STYLE: habit ...
0
votes
1answer
20 views

How to debug lsp-mode “lsp-request: method not found”?

I've setup lsp-mode and clangd, and put the compile-commands.json in the projects root. I can tell compile-commands.json because my cflags are included in the Updating file output of *clangd::stderr* ...
0
votes
0answers
31 views

Howto define TAB and S-TAB in keymap of custom mode

I'm trying to bind the TAB and shift TAB keys to a custom readonly buffer mode. The skeleton of the mode looks like this: ;; 8< --- exmode.el ------- (defun exmode-i () (interactive) (message ...
1
vote
1answer
25 views

How to stop lsp-mode converting C/C++ includes into buttons?

When lsp-mode is enabled all headers become clickable (draw as buttons), underlining them making them slightly harder to read. I don't need this since I can have a key bound to go to the header. Is ...
3
votes
2answers
70 views

Retracing steps with emacs (When programming /exploring)

Often when fixing a bug or implementing a new feature in a code repository, I start off with an investigatory step. For example, I would have a lead, a word such as "Article" and I would start by ...
0
votes
1answer
25 views

Semantic way to export Org subtrees inside arbitrary LaTeX environments

I would like to begin taking math class notes in Org mode -- I have thus far used plain LaTeX, but I have found Org has the potential to be much faster for real-time scribing. I already made a custom ...
0
votes
1answer
584 views

List of themes available in Spacemacs

helm-themes loads the themes present in custom-load-themes which are coming from custom-theme-load-path (as per C-h f helps) After installing themes mega-pack, the list is the following : Available ...
0
votes
1answer
31 views

Why does calc subscr work with index vectors in org tables?

In my org table I use the next formula to sum rows 1,5,7 of column 6. | | Start date | End date | Task | State | Duration (hours) | |---+------------------+------------------+...
7
votes
2answers
3k views

How can I adjust the fixed-width of a Neotree buffer?

Using emacs 24, when I try to use the Neotree package I am having issues with modifying the fixed-width of the window. I believe I have found the responsible chunk of lisp, but changing the value ...
15
votes
2answers
2k views

Is there a possibility to have multiple agenda views open at once?

I have a custom agenda view which shows the Items I did last week and the items I have to do in this week. This view is based on a filter of TODO items. However, it would be good to see scheduled ...
2
votes
2answers
36 views

Not scape braces in LaTeX org-mode

I am writting a LaTeX document using org-mode, and there is a section where I want to include a proof, which has the following code. #+LaTeX_HEADER: \newcommand{\dem}[1]{\textcolor{gris}{\small{...
1
vote
1answer
58 views

How to execute one line in the .emacs file?

To test a function definition, for example : (defun count-words-buffer () (let ((count 0)) (goto-char (point-min)) (while (< (point) (point-max)) (forward-word 1) (setq count ...
0
votes
0answers
20 views

How to adjust image size of an org-babel output permanently?

I know I can add html or latex attributes under the #+result: block after executing the block, but when I re-evaluate the block, it is removed.
3
votes
1answer
68 views

What is the point of the Ctrl-M binding? Can I overwrite it if I use the Return key?

Looking for a new convenient keybinding for a frequently used command I stumbled upon Ctrl-M which is the same as Return/Enter. What is the point of this binding? Can it cause some problem if I ...

15 30 50 per page