All Questions

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

When C-c C-c on a block in my org buffer, it collapses the whole buffer

How to avoid this behaviour? I use Prelude. If I have a source block I want to evaluate, it will do so, but also it will collapse all the headings in the buffer, which is annoying. Thanks for any help ...
1
vote
1answer
31 views

How to enable org mode and evil mode for untitled buffer when creating a new frame

The code below creates a new frame with an untitled buffer, how to make this buffer default with org-mode and evil-mode? (global-set-key (kbd "s-n") 'new-empty-frame) (defun new-empty-frame ...
2
votes
1answer
48 views

Magit deprecates `magit-popup`. Which of my packages depend on it?

How do I get Emacs to report which packages in my running Emacs depend on magit-popup? Soon Magit will stop supporting magit-popup because it has transitioned to the replacement transient. Somehow ...
1
vote
1answer
48 views

Wrong type argument: undo-tree, [cl-struct-undo-tree [nil ([nil ([nil nil ]]]

The way I installed undo-tree: M-x package-install undo-tree My setup: GNU Emacs 26.3 undo-tree 0.7.4 installed Treat undo history as a tree (global-undo-tree-mode 1) (setq undo-...
0
votes
2answers
55 views

How to display agenda start day / end day in the header-line?

I'm trying to display the org-starting-day in the header line using the code below. It's working when I first display the agenda but it is not updated when I navigate forward / backward in the agenda. ...
0
votes
0answers
18 views

Colors in frame title

Is there a way to use custom colors in the frame title? I couldn't find a face for it and it seems like the title might be part of the OS, but I wanted to check here to make sure. I'm using GUI emacs, ...
0
votes
0answers
33 views

gnus: fetch mails over IMAP from Outlook mail server

I'm trying to enable gnus to work with Outlook server (https://outlook.office.com/owa). At first I tried to re-use my old configuration for gmail (which worked fine for several years), but it didn't ...
0
votes
1answer
27 views

Adding a pattern to compilation-error-regexp-alist

I'm using the latest Doom Emacs on Emacs 27 with this config: https://github.com/gregghz/doom-config/tree/d3af4724cb4a5dd379645580698f7d24a5c3922a. I have this code to run a bloop command (like bloop ...
0
votes
1answer
55 views

Custom Keybindings not working

I had to reinstall emacs and completely redo my config file, but for some reason, some of the custom keybindings that used to work with "move-dup" package from Melpa. Here is what i have: #+...
1
vote
1answer
25 views

How to remove day grouping header for today's date in Agenda View?

I have following custom agenda command definition. What I would like to achieve is to group all tasks for today without wrapping them in the current date header. (setq org-agenda-custom-commands ...
1
vote
1answer
61 views

How to exit emacs with `q` when man inside emacs is opened

Default behavior of man <command> (opens inside less) when q is pressed it is closed. I am using following to open MANPAGER with emacs: emacsclient -nw -e "(let ((Man-notify-method 'bully))...
3
votes
1answer
92 views

Copy the extra information lines from *Org Agenda*

It's somehow strange. In the *Org Agenda* you can get extra information with v c (time gaps) or v E (some entry text). What I want is just to copy the extra information (text lines) with the rest of ...
3
votes
1answer
112 views

How to us a shortcut to add semicolon to end of current line?

Is there a shortcut to add a semicolon to the end of the current line of code? For instance, M-; inserts a comment at the end of the current line of code. Is there anything like that for a semicolon? ...
1
vote
1answer
31 views

icicles: Package yow is obsolete

GNU Emacs 26.3 I updated all the packages and started to face with following error, I am not sure what is causing it, it wasn't happening before the update: ./icicles/icicles-cmd1.el :512:(eval-when-...
0
votes
0answers
19 views

How can I apply `emacs-maple-minibuffer` for `helm-for-files`?

=> How can I apply emacs-maple-minibuffer for helm-for-files? I pasted emacs-maple-minibuffer's function from its README but seems like it does not take any affect. I am not sure what is missing. ...
0
votes
0answers
13 views

ido-find-file key-binding `Ctrl-b` and `Ctrl-f` to move around in the list

From Mickey Petersen' blog Find files faster with the recent files package: (require 'recentf) ;; get rid of `find-file-read-only' and replace it with something ;; more useful. (global-set-key (kbd &...
0
votes
0answers
10 views

How to disable `clean-aindent-mode` in spacemacs configuration

I noticed that clean-aindent-mode is messing up the indentation as I am writing python files. Hence, I wanted to disable this mode, at least when using python mode. I can manually disable this mode, ...
1
vote
1answer
37 views

How to change background of Org-mode's source code block only from the indentation of #+BEGIN_SRC?

In Org-mode, I wonder if the background color of the source code block can be changed only from the indentation of #+BEGIN_SRC? Here is the current background in my Org-mode: Is it possible to change ...
0
votes
0answers
13 views

Setting up Emacs as an external editor on windows 10

Apologies if this has been asked multiple times already, haven't found a useful answer. I am trying to use Emacs as an external editor on two separate applications in windows 10, one is a notes app (...
0
votes
0answers
23 views

Error message when posting to GMANE

When trying to post to GMANE, I get an error message: 441 You need a valid email address to post: Invalid response from SMTP server mail.inka.de: 550-Verification failed for auth@gmane-mx.org Couldn’...
0
votes
0answers
60 views

How to draft email programmatically?

I use mu4e for email with multiple accounts. I have multiple accounts in mu4e and followed the manual with a function my-mu4e-set-account and a hook to it: (add-hook 'mu4e-compose-pre-hook 'my-mu4e-...
1
vote
1answer
22 views

Process shell exited abnormally with code 53 on windows 10

I'm using emacs 26.2 installed through msys2. Recently starting subprocesses from emacs has stopped working for me. Specifically M-x shell and shell-command-to-string. I get the feeling this is due to ...
0
votes
1answer
43 views

Emacs org export shell script from txt file

I have a .txt file which is an org file but not with the .org file extension. I want to export the file to html on the command line, but it does not work if the file extension is .txt, only if the ...
0
votes
1answer
11 views

Re-enable flychecksyntax checker after reported too many errors

I recently ran into this error from flycheck: Warning (flycheck): Syntax checker csharp-omnisharp-codecheck reported too many errors (482) and is disabled. I saw this: Warning (flycheck): Syntax ...
0
votes
0answers
23 views

Why symbol-value throws a void-variable error with a let form if lexical binding is on? [duplicate]

Here's a simple example from the manual: ;; Here the symbol ‘abracadabra’ ;; is the symbol whose value is examined. (let ((abracadabra 'foo)) (symbol-value 'abracadabra)) ⇒ foo Why does this ...
0
votes
0answers
24 views

How to resolve keybinding conflict, or set precedence of the bindings to the same keys for different functions?

How do I resolve keybinding conflict? Or if it's possible to have precedence of keybindings for the same key for different functions? I have the following snippet definition, in org-mode: #+name:${2:...
1
vote
1answer
27 views

Exclude some headings from numbering

I would like to exclude some headings from numbering in org-num-mode. Is there a way to achieve this?
0
votes
1answer
20 views

How can I split a window so that the cursor ends up in the right / lower window?

The functions I have found for splitting windows are (split-window-right) and (split-window-below). When these are evaluated the cursor ends up in the right window in the case of (split-window-right)...
0
votes
1answer
53 views

compilation sentinel: symbol's value as variable is void for quote, >, <, =, etc

I'm working on a script that can compile multiple directories and then provide the first error to a file. Currently, I am tackling the issue of running make in multiple directories portion. I am ...
0
votes
0answers
29 views

GUI started emacs has different env vars than terminal started one

I wrote LD_LIBRARY_PATH both in .bashrc and .bash_profile. However, if I started emacs in terminal using emacs, LD_LIBRARY_PATH is shown in getenv. If I started it using GUI, there is no such variable....
2
votes
1answer
190 views

Does anyone know of a quick method to get hexadecimal line numbers in emacs?

Does anyone know of a quick method to get hexadecimal line numbers in emacs? I am using linum for line numbers. I suppose I could hack it, but just thought to ask first.
0
votes
0answers
14 views

How to format header files on close?

I have the following in my .emacs file. (require 'astyle) (add-hook 'c-mode-hook (lambda () (setq astyle-on-save-mode t))) (add-hook 'c++-mode-hook (lambda () (setq astyle-on-save-mode t))) For files ...
1
vote
2answers
68 views

How to turn off automatic indenting for Org files in a specific folder?

I am using Doom Emacs. I like having indentation for most of my org files, but I have one folder where I want to have org files without indenting, to use for writing documents. I have already tested ...
0
votes
0answers
13 views

python: flake8 ignore __main__ scope in function's scope

I am getting following warning message for the following code: F821 undefined name 'variable'. // variable becomes color red. #!/usr/bin/env python3 def doo(): print(variable) # <= F821 ...
3
votes
1answer
29 views

Continue comment while editing lisp and when hitting enter

If I'm writing a comment ;; this is a comment ;; this is its second line And I hit enter, I get a new line like this: ;; this is a comment ;; this is its second line Instead of getting a new line ...
0
votes
1answer
45 views

How to insert lowercase Greek nu Unicode character?

I am writing Julia code in Emacs, which allows the use of unicode characters in the source code. However, some symbols come out looking weird. For example the Greek letter nu: becomes: Does anyone ...
0
votes
1answer
48 views

“not in compilation buffer” error using compilation-next-error in elisp function

I am getting an elisp error that fails at lisp/progmodes/compile.el within compilation-next-error function that reads "Not in a compilation buffer". The elisp function I am writing attempts ...
4
votes
0answers
44 views

PDFView scroll line

I'm using <space> to scroll down in a pdf document that does not fit completely in a frame. However, this disrupts the reading flow as I need to find again the correct line that is now ...
0
votes
1answer
27 views

Return all time today spent on tasks that include a particular tag

As the title. I have come so close but can't get past this last hurdle. The below returns all time today that has been spent on headings where the tag is 'billable'. However it fails when there are ...
0
votes
0answers
28 views

GNU global prefers goto definition instead of goto to declaration

How I find a declaration of a cpp class or struct by GNU global for now. search a class name with Emacs gtags plugin such as ggtags or counsel-ggtags) the constructor or destructor of the class is ...
1
vote
1answer
24 views

How can I access Mac menu bar help via keyboard?

I'd like to be able to search Emacs's Mac menu bar entries using the keyboard, as you normally do in most other Mac applications using s-? (this answer suggest that it should be possible?). I've ...
1
vote
1answer
33 views

How to stop Emacs from using LaTeX mode key bindings for `*.tex` files?

It seems that Emacs tries to autodetect the type of file and changes some of its behaviors accordingly. I don't want any of this behavior. I just want Emacs to treat every file as if it were some ...
0
votes
0answers
19 views

Python automatically add import statement

Is there a way to automatically add imports to python code within emacs? def f(x: str) -> List[str]: I want to be able to have my guess over "List" press a key binding and magically add ...
4
votes
1answer
104 views

Org agenda should show all todos of the current week (not separated by days)

Problem The default agenda-list-view separates the todo items of the current week by days and sort them by time within each day if there are timestamps. Instead, I want to combine all the todo items ...
0
votes
1answer
38 views

How do I disable Centaur Tabs in ispell Choices buffer

I need to disable the Centaur-Tabs in the Choices buffer of ispell/flyspell. In Centaur Tab's site it says to add a hook, so I tried this: (add-hook 'ispell-choices-buffer 'centaur-tabs-local-mode) ...
0
votes
0answers
15 views

Magit forge: updating the branch of a pull request

Does forge support updating the branch of a PR? Suppose that I checked out a PR branch with b y, and afterwards there were additional commits into this PR. It seems that I cannot pull these new ...
1
vote
1answer
50 views

M-x compile hangs with WARNING: terminal is not fully functional

I have been using M-x compile for ages. Lately (our sysadmin has updated many things) it hangs after giving this message: WARNING: terminal is not fully functional - (press RETURN). Pressing return ...
0
votes
2answers
21 views

Heading of higher level in agenda view?

I often collect several meetings under one heading in my org files, e.g.: * Interdisciplinary studies ** Paracelsus reading group *** Meeting <2020-01-07> ... *** Meeting <2020-01-14> ...
2
votes
1answer
35 views

Getting rid of plain text timestamp entry in agenda export

I am trying to create a weekly agenda that I can print out and use without having to be at the computer To best explain my problem I will use some screenshots This is the normal org file that I will ...
0
votes
1answer
23 views

Exported org file to pdf with content out of page

I'm writing a document with some long strings on it, then I export the org file to pdf with the classic C-c C-e l p . Then when I check the document, the long string are out of the page. How can I fix ...

15 30 50 per page