All Questions

2
votes
1answer
26 views

autofill a cpp file based on the .h file

suppose I have x.h class X { void f(); void g(); } in x.cpp #include "x.h" can I just entry a command with "X" as a parameter, then I can get void X::f() {} void X::g() {}
1
vote
2answers
13 views

Unbind CUA <C-return> key only in dired mode

Goal: unbind <C-return> key ONLY in dired mode in order to rebind it to dired-w32explore. My configuration is using use-package with something like this: (use-package dired :init (unbind-...
1
vote
1answer
25 views

Stop emacs from redrawing display

I'm using emacs from a terminal, and have noticed that certain commands make the terminal screen flicker when I use them. Notable commands are evil mode's recenter-top-bottom and xref-find-...
1
vote
1answer
26 views

How to automatically remove a hook provided by a minor mode after disabling that mode?

I want to write a minor which evaluates some code in the buffer after saving a file. I activate after-save-hook for this mode: (add-hook 'my-minor-mode-name-hook #'(lambda () (add-hook 'after-save-...
3
votes
1answer
42 views

I have package X installed as a dependency. How can I discover which package pulls it in? ie Reverse Dependency

I tried to delete package X (in order to try an older built-in version). But when I restart emacs, it's automatically re-installed. package-list-packages lists it as a dependency so that behaviour ...
0
votes
1answer
21 views

Getting the CLOSED timestamp of the current subtree

To get the current date and time, I can use (current-time). But instead, I want to get the CLOSED timestamp of the current subtree and store it in a variable, so that I can pass it to format-time-...
0
votes
1answer
34 views

Avoiding partial lines at bottom of screen

Is there a way to avoid only partially visible lines at the bottom of the screen, such as in this picture? Perhaps this could be achieved by adding some empty space below the minibuffer and echo area,...
1
vote
0answers
9 views

I want the color-theme to highlight the text in the buffers but not change the colors in the menu bar

I loaded a color-theme (manoj-dark) to highlight text in the buffers but it also changed the color of the menu bar. Now the menu bar icons are setting in a black background and the title bar of the ...
0
votes
5answers
38 views

How to define action to happen on triple key press?

I'm using evil mode. I'm looking for a convenient way to type German language Umlaut characters (ä, ü, ö, Ä, Ü, Ö, ß) while using an English US keyboard layout. One idea that came to mind was to ...
1
vote
1answer
23 views

How can I change external program to open org URLs for one org file only

In my Emacs config, I have set Firefox to be the browser to open URLs with, (setq browse-url-browser-function 'browse-url-firefox) Now, I have one org-mode file, in which I would like to open URLs ...
5
votes
3answers
188 views

How do I view the mark ring?

Is there a command to view the entries in the mark ring, similar to listing buffers with C-x C-b or viewing the kill ring with the function browse-kill-ring or viewing the jump list (in info mode) ...
0
votes
1answer
22 views

How narrow from cursor to end of buffer?

M-x narrow-to-region - Narrow down to between point and mark But I need to narrow from cursor position to end of buffer. Is it possible?
1
vote
1answer
23 views

Review the current week's agenda

I learned to review the jobs get done in the current week following the instruction: The Org Manual: Weekly/daily agenda Press C-c a and get Continue to strike a, I get a single day's agenda of ...
0
votes
1answer
29 views

How show multicursor only from cursor position?

emacs 26 in my scratch buffer I select dash Now I want to show multicursors only from cursor position (line 5). M-x mc/mark-all-like-this But it show multicursors in whole buffer I also try M-x ...
0
votes
0answers
25 views

Rebind C-x b to ivy-switch-buffer

I find ivy-switch-to-buffer is handy abo-abo/swiper: Ivy Is it possible to bind the function to C-x b Additionally, my C-x C-b is bonded to ibuffer How could rebind it to function 'helm-buffer-list"...
0
votes
0answers
8 views

org mode to capture new to do list

I tried to create a new task from the Capture with C-c t, but it prompt me with * NEXT [2019-01-12 Sat 18:17] I assume it should be ** TODO How could I change the default behavior?
1
vote
1answer
25 views

error "Font 'tty' is not defined

I am running on Ubuntu 18.10 and emacs 25.2, I changed the default font to (set-default-font "Monaco 14") but get error report as: Debugger entered--Lisp error: (error "Font ‘tty’ is not defined"...
2
votes
1answer
19 views

show top 5 used buffer at the bottom of buffer

I'm currently using helm-buffer, and I have bind my c-x b to (helm-buffers-list),however when I switch buffer, I still have to: 1. c-x b 2. type some works 3. enter sometimes, I probably just ...
2
votes
0answers
56 views

How to Export All Daily Task State Changes to File?

I am trying to generate nice end-of-day reports in the file diary.org for logging and archiving purposes. I would like to generate a simple list of all TODO task state changes for the current day to ...
0
votes
1answer
8 views

How do I suppress indentation after labels in Groovy?

I'm writing some Groovy code, and in my unit tests I have something like the following: def testFoo(){ given: //setup statement 1 //setup statement 2 //... when: //Execute ...
1
vote
1answer
32 views

Use `defun` font-locking for other keywords

I'm using the tco.el package, which provides tail-call optimisation for functions in elisp that call themselves in tail-position. The way such functions are identified is by using defun-tco instead of ...
0
votes
1answer
14 views

How do I reference a columnview table

I'm trying to get effort estimates out of a columnview table and do some math on it in a separate table. #+TBLNAME: estimate #+BEGIN: columnview :indent t | ITEM | TODO | Effort | ...
1
vote
1answer
49 views

Strange toolbar icon in AUCTeX mode (on Mac)

I notice there is a strange box-shaped icon in the toolbar in the AUCTeX mode (circled in the picture below). It should be a toolbar separator (for example, on Linux): I am using GNU Emacs 26.1 with ...
1
vote
1answer
16 views

How can I configure the tab width for TCL files

I set all tab-width parameters and indent parameters to 2, but Emacs always uses 8 for the tab space when I press the TAB key at the beginning of a line, if i opened one bracket. How can i set the ...
1
vote
1answer
23 views

use js2-mode instead of js-mode in org babel source

I want to use js2-mode instead of js-mode inside org-babel sources. Is there a way to define a mode for JavaScript inside those chunks? #+begin_src js console.log(1+1) #+end_src
0
votes
0answers
28 views

Cannot load the paradox package in Emacs

I am using Emacs 24.5 on Mac OS and trying to install the paradox package through Melpa. When I type the command M-x `package-install' RET paradox I get the response [No match] How can I install ...
1
vote
1answer
39 views

%%j and %%S in format string for frame-title-format

In my cobbled-together init.el, my frame-title-format variable has these %-sequences in it: %%j and %%S Does anyone recognize these specific sequences? They come up blank in my frame title. Here's ...
0
votes
0answers
10 views

How to open a file in a vertical split after using helm-projectile-find-file?

After selecting a file to load with helm-projectile-find-file, how can one load the target file in a vertical buffer?
5
votes
1answer
28 views

Show blame information for a line from the *magit* buffer

There's a workflow I tend to do fairly often and I wonder if Magit could help me. I've made a bunch of git commits on a branch, I haven't pushed them yet, and I notice a small mistake in my unpushed ...
0
votes
0answers
15 views

run-python and interactively choose working directory

When starting an R process using ESS (M-x R) you are interactively asked for a working directory. To replicate this behaviour for python I have been opening up some random file in the directory I ...
1
vote
1answer
29 views

How close and exit from buffer *Re-builder*?

emacs 26.1 M-x regexp-builder Input some regexp. Nice. But now I want to close and exit from buffer Re-Builder. How I can do this?
0
votes
1answer
34 views

clicking on a schedule item no longer pops up org-agenda

In the good old days (ie last week before I did a M-x package-list-package U x) when I clicked on a SCHEDULED: <...> link, it would popup the org-agenda view. Now it does nothing and displays No ...
1
vote
1answer
27 views

How does one save and close a file in Proof General without all of Evil shutting down?

I am using evil (emacs+vim). I am also using Proof General for the theorem prover Coq. I was trying to work with emacs but whenever I do: :x or :q in my coq .v file all of emacs closes as well (...
1
vote
1answer
34 views

Emacs indents C++ functions in structs in an unexpected way

Emacs indents functions in structs in the following way: struct A { int a() { return 1; } int b() { return 2; } } int c() { return ...
0
votes
0answers
13 views

emacs-w3m has quit working for me, but not other users

GNU Emacs Version 26.1 and emacs-w3m version 1.4.631, running on Fedora 29. emacs-w3m seems to have quit working for me. More precisely: I issue the command "emacs -q" I do (set debug-on-error t) ...
0
votes
2answers
41 views

regexp-builder - no match with correct regexp. Why? [duplicate]

In buffer I has text "ADA-SGD" "ADT-SGD" "ADX-SGD" "AID-SGD" "AMP-SGD" "ANT-SGD" "ARDR-SGD" "ARK-SGD" M-x regexp-builder Input regexp: "\([A-Z]+\)-\([A-Z]+\)" But I get message: No match. Why?
1
vote
1answer
33 views

Org : refile and leave a link behind

I would like to "augment" the org-refile function in such a way that, once I moved the heading from the source to the destination, a link to this last file is created and inserted in the source, in ...
0
votes
1answer
20 views

Disable flycheck for laTeX

I use emacs with AUCTeX for editing tex files. I also use flycheck for some other programming language. How to disable flycheck in TeX mode ? I tried called flycheck-mode nil in the latex hook but ...
3
votes
5answers
415 views

How to swap strings in all lines?

Emacs 26.1 I have this text: "ADA-SGD" "ADT-SGD" "ADX-SGD" "AID-SGD" "AMP-SGD" "ANT-SGD" "ARDR-SGD" "ARK-SGD" I want to swap text in all these lines. The result must be like this: "SGD-ADA" "SGD-...
2
votes
1answer
43 views

Convert an org table into a tree

I have an org table and I will like to convert in into a tree. So, from: | 1 | 2 | 3 | |---+---+---| | a | b | c | | l | m | n | I will like to go to: * a :PROPERTIES: :2: b :3: ...
0
votes
1answer
31 views

The orgstruct-mode seems to be gone from the org-plus-contrib

I've been using orgstruct in my message mode hooks but it seems it is gone now in the 20181230 org ELPA package. (add-hook 'message-mode-hook 'turn-on-orgstruct) (add-hook 'message-mode-hook 'turn-on-...
7
votes
1answer
57 views

Adding box around text without changing the text width

The documentation of Face Attributes suggests that adding a line-width of -n to the box attribute will draw a line of width n whose top and bottom parts occupy the space of the underlying text, ...
1
vote
0answers
8 views

Failing to convert Japanese org-mode document to Latex

I am writing Japanese Org mode note and need to convert it into Latex. I defined the japanese latex class in my config file as follow: (with-eval-after-load 'org (add-to-list 'org-latex-classes ...
1
vote
0answers
11 views

Pomidor mute to play sounds

I am running Emacs 26.1 on MacOs Mojave and have problem to play sounds with pomidor: pomidor is installed in ~/.emacs.d/elpa/pomidor-20180614.828 Reference to the source code pomidor.el, it warn ...
0
votes
0answers
9 views

Error to display Chinese and soundmark

I work on Org-Mode to keep notes of words - Fledge /fledʒ/ 长出飞羽 It display the unicode properly, but when open the file next time, it becomes - Fledge /fled\312\222 How could I solve the ...
0
votes
1answer
24 views

Search for occurrence of character within a string without using the common lisp library?

I need to extract certain information from buffer names, and I'm doing so by extracting substrings based on the position of unique characters within a buffer name string. So, I currently am doing ...
2
votes
1answer
47 views

When using `lisp-state`, how can we repeat an action like slurp, and bind a key to easily perform the repeat?

In vim, I frequently used the "." shortcut for repeating the last command. I found this extremely useful especially when working with clojure tools to do things like slurp-ing and barf-ing to refactor ...
1
vote
1answer
95 views

Outside of Emacs what other software supports org-mode syntax?

Context In my spare time, I've been adding very limited support for org-mode syntax in the Atom text editor for my friends that absolutely will not switch to Emacs. Over the last few years I've ...
3
votes
2answers
133 views

Easy Templates in Org 9.2

Easy templates in Org 9.2 are not working for me on GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30. I have changed my elpa/ directory to smelpa/. I load emacs -q and switch to the *...
0
votes
1answer
25 views

highlight-indent-guides-mode

I'm trying to activate highlight-indent-guides-mode by default but it is not working. If i do M-x highlight-indent-guides-mode it works fine but adding (highlight-indent-guides-mode 1) to my .emacs ...

15 30 50 per page