All Questions

0
votes
1answer
9 views

Given a keyboard command, how do you find the interactive function?

I have a key sequence for C-u C-c . How would I find the function that's bound to it. I thought it was describe-key but that doesn't seem to work. Cheers
1
vote
1answer
7 views

Set the password for sql-postgres

I have a question regarding connecting to a sql database programmatically. Ideally I would like to have a function with similar functionality to the sql-postgres but instead of interactively prompting ...
0
votes
0answers
12 views

company mode with clang

I am trying to get completion to work with company-clang. In particular, I would like to get completion candidates that are from header files that I provide with dir-locals.el When I look at the ...
0
votes
2answers
28 views

How to create a new repository on Github from Magit

I am unable to add a remote repo to github if it does not already exist on github. E.g. magit-init Add some files, stage and commit. Then magit-remote-add --> Remote name:github --> Remote url: ...
0
votes
0answers
24 views

Magit throws error when I press “h” or “c”

I have installed Emacs on a fresh install of Elementary OS, and I have just installed Magit. When I run magit-status in a repository, and press either the c or h key, magit throws an error. The error ...
0
votes
2answers
19 views

hl-line-mode interferes with custom syntax highlighting

Recently, using fic-mode as reference, I implemented a way for words like TODO, etc. to be highlighted. Here is the code: (defun todo/pos-in-doc-or-comment-region-p (pos) (memq (get-char-property ...
1
vote
1answer
19 views

ESS poly-R issue

I am trying to setup ESS with polymode and poly-markdown I have the following in my myinit.org file which becomes compiled into init.el ;; https://polymode.github.io/installation/ (use-package ...
3
votes
1answer
38 views

How to partially block user input while Emacs subprocess is running

I have a custom function that updates the etags file before prompting the user to input a desired tag to be located. Although I am pretty good about setting the current buffer to read-only before ...
0
votes
1answer
33 views

How to enable 256 colors in terminal

I'm having a problem with setting up colors in my xfce terminal. (list-colors-display) shows only 8 colors, while both my $TERM variable and (tty-type) is xterm-256color. I've dug through the ...
0
votes
1answer
39 views

List variable that is set to one list or another depending on condition

I am trying to create a list variable that can be set to one list or another depending on a condition. What I have so far is as follows. (let ((l (if local list1 list2))) ; Append items to the list ...
6
votes
1answer
59 views

what do [ *, %, >, D ] mean in ibuffer buffer?

When I open ibuffer to manage opened buffers I see [ *, %, >, D ] markings. There is no documentation describing what they mean. I wonder what do they mean (Emacs 26.1) ?
1
vote
0answers
10 views

R in ESS outputs UTF-8, which emacs renders raw

I find the question but no answer at Emacs ESS R - Message Content Encoding and Display Issue. In buffer *R*, the R process uses UTF-8 encoding for its output. However emacs does not decode that ...
1
vote
1answer
26 views

How query-replace-regexp for all text exact before specific text?

emacs 26.1, windows 10 I have some text. I need to replace all text before WARN I use: query-replace-regexp: .*WARN query replace regexp: RET But I need to delete all text BEFORE WARN. How I can ...
0
votes
1answer
19 views

Enable Follow mode for helm-org-in-buffer-headings

I want to enable helm-follow-mode for helm-org-in-buffer-headings. This is what I have so far: (add-hook 'helm-after-initialize-hook ((lambda () (helm-attrset '...
2
votes
1answer
19 views

Rewriting `defadvice' as `advice-add' makes advice ineffective

I am trying to make undo-tree auto compress the history save file. The document suggests adding the following advice (defadvice undo-tree-make-history-save-file-name (after undo-tree activate) (...
1
vote
1answer
212 views

Meaning of “value is t”

When using describe-variable, often the value for a variable is listed as: Its value is t What does that mean and why specifically t?
3
votes
1answer
46 views

iedit vs. multiple-cursors

What is the difference between iedit and multiple-cursors? As far as I can tell they provide basically the same functionality.
1
vote
2answers
46 views

Org-mode: How to display current time record in another color?

I'm still very new to emacs and currently use it on the terminal to track my work time in org-mode. ** Save the world :LOGBOOK: CLOCK: [2019-02-14 Do 10:24] CLOCK: [2019-02-14 Do 08:51]--[2019-02-14 ...
2
votes
1answer
25 views

How to set the local dictionary in a *Org Note* buffer?

I am using different flyspell/ispell dictionaries for different buffers/files setting the file local variable ispell-local-dictionary, respectively. But if I want to log e.g. a TODO state change a *...
1
vote
0answers
17 views

When/how does font initialization occur? Changes at init time seem to only have partial effect

I have been experimenting with variable-pitch for some buffers. I have the following snippet in my emacs init: (set-face-attribute 'variable-pitch nil :family "Bookman Old Style" ...
0
votes
0answers
13 views

Installing font package only once via command in file

I have a package that install the all-the-icons-package automatically namely (use-package zerodark-theme :ensure t :init (load-theme 'zerodark t) (zerodark-setup-modeline-format)) all-the-icons ...
0
votes
0answers
19 views

Retrieve all entries with active or inactive timestamp

I wonder if there is a way to find all entries in active / inactive timestamp state (without DEADLINE or SCHEDULED). It seems I have had such entries unacted upon in the past, and the only way I have ...
1
vote
1answer
26 views

ibuffer-expert not working

I want to make my ibuffer not to be pompted. So it is my config for ibuffer (setq ibuffer-expert t) ;; disable prompt when deleting modified buffer. (add-hook 'ibuffer-hook (lambda () (...
0
votes
0answers
14 views

Helm + Org-Goto + Narrow to Subtree + Follow Mode

I am using org-goto with helm and my init file has the following config: (setq org-goto-interface 'outline-path-completion) (setq org-outline-path-complete-in-steps nil) This works fine but I ...
0
votes
0answers
27 views

Can't change location of .authinfo

While using emacs e-mails, receiving works fine. Sending does not. If I place my .authfile in the home folder sending mails works fine. It does not ask for smtp server or user or password. If I move ...
1
vote
2answers
42 views

How do I write a function to replace specific Markdown text?

At work, I mostly use Emacs for all my programming and text editing but I wouldn't really say I'm a pro. I'm more like beginner or intermediate so I'm not sure if this is really even a question. I ...
4
votes
1answer
37 views

change how much undo-tree-undo undoes [duplicate]

In particular, I am using undo-tree-undo. When I type a few words in a line, and undo, all those words disappear. Same thing happens when I type a function name and screw up a couple of symbols in ...
0
votes
0answers
21 views

Merge org-mode headings without breaking links

I have a large collection of notes in org-mode, each with it's own heading and org-id. For example * Note one :PROPERTIES: :ID: 403847B2-3D4C-4EFB-96DE-E0C5C52A02B5 :END: * Note two :...
0
votes
1answer
31 views

Spacemacs: How can I customize the highlight style of a matching parenthesis?

How do I change, in my .spacemacs, the style used to highlight the matching parenthesis?
3
votes
2answers
44 views

Limit magit to showing status of 1 directory

I'm working on a large repo with many folders, and showing the status is slow (just plain git takes a long time). I am really only interested in one directory, how can I constrain magit to only seek ...
0
votes
0answers
11 views

Ada mode : navigating through code, always open in new window

when I navigate in ada-mode, The first time that I press C-cC-d (ada-goto-declaration), Emacs divide vertically the frame, and open the new file in the other window. Most times, every C-cC-d press, ...
0
votes
0answers
9 views

How to remove email address from local database in mu4e?

I use mu4e to read and write email. One email address that was in the LDAP server before no longer exists, but it still shows and auto-completes in mu4e. How can I remove that address from the local ...
1
vote
1answer
28 views

Launch ncurses application and cleanup once it exits

I'd like to occasionally use hg split and hg commit --interactive from Emacs, but those commands bring up a GUI. At the moment I either use a separate terminal or ansi-term for those, but would like ...
1
vote
1answer
15 views

“void-variable” error when adding advice to `kill-ring-save`

I am trying to add an advice to kill-ring-save and kill-region, so that when I call them with no active regions, instead of throwing an error, the line the point is currently on would be marked ...
0
votes
0answers
36 views

Alternatives to Git on Windows due to its slowness

I am forced to use Windows 10 on my job, so I use native Win32 Emacs. Also use Emacs on WSL (compiled from emacs mirror though tried the default Ubuntu 18.04 too). I tend to use more the one on WSL, ...
2
votes
1answer
36 views

Is there a way Emacs can infer is running on WSL (Windows Subsystem for Linux)?

I would like to identify when Emacs is running on WSL (Windows Subsystem for Linux). Normally I use system-type variable to check if Emacs is on Linux, Windows or MacOS X. Though in this case it ...
2
votes
0answers
39 views

Make region(s) invisible (not evaluated) to “string-match”, “occur” and similar commands

In a previous question, Make region(s) invisible (not evaluated) to query-replacy and similar commands, I learned about isearch-filter-predicate. Now, I wonder if is there a similar method to make ...
2
votes
1answer
40 views

Prevent * from bolding text when creating a headline

When I start typing several stars to create a new headline, like ***, emacs starts bolding some of them, making the first and the last invisible. This makes it hard to know what headline level I am at,...
1
vote
1answer
24 views

(require ) a certain file only when opening a particular file type

I've started using Emacs for Ocaml programming, and used opam for installing some Emacs scripts which enable IDE features. To use these, opam added the following line to my .emacs: (require 'opam-...
1
vote
1answer
14 views

Which variable modifies the switch statement indentation on php-mode?

I am currently using php-mode with spacemacs to write in php and recently I noticed this auto-indent behavior, namely pressing TAB. switch ($cond) { case "something": break; } Auto indenting ...
0
votes
1answer
54 views

Should I use “require” or “load” when writing my own configuration? [duplicate]

I am following this tutorial, and the author is doing something like this: ~/.emacs.d/init.el ;; add your modules path (add-to-list 'load-path "~/.emacs.d/custom/") ;; load your modules (require '...
0
votes
0answers
12 views

Partial table fold in `org-mode`

I wonder whether it is possible to fold (as in code folding) part of a long table in org-mode.
0
votes
1answer
20 views

Error enabling flyspell mode in Emacs

I use flyspell hunspell for checking my spelling mistakes in Emacs. Recently, when I run Mx flyspell-mode in .org or .tex files I got the following error: Error enabling Flyspell mode: (hunspell ...
4
votes
1answer
46 views

Magit unignore file

When in magit, I pressed i on a file and asked if I would like to ignore the file locally or globally. I chose locally. I assumed that it would write a line in my .gitignore file but unfortunately ...
1
vote
0answers
33 views

Mark heading done when all checkboxes are checked [duplicate]

I want to mark heading done when all items in the checklist are checked. In this example : * TODO Heading [2/3] - [X] Stuff 1 - [ ] Stuff 2 - [X] Stuff 3 When toggling Stuff 2 (C-c C-c) I want ...
0
votes
1answer
23 views

How open text file by default with UTF-8 endcoding system?

Emacs 26.1, Windows 10 In my init.el: (set-language-environment "UTF-8") But when I open text file the Emacs not show correct Cyrillic text. Why? describe-variable -> buffer-file-coding-system ...
0
votes
0answers
27 views

Save whole emacs session

After closing emacs I would like to restore the same session I left, which includes opened windows, font sizes within the windows and open buffers. I'm aware there's a lot out there, but most things ...
0
votes
1answer
25 views

Emacs not show Cyrillic text (UTF-8)

Emacs 26.1, Windows 10 I open by Notedpad++ text file. Here result: As you can see the encoded is UTF-8. And as result Notepad++ success show Cyrillic. Nice. Now I open same file by Emacs: Why ...
0
votes
1answer
40 views

How to use customize to turn on viper mode by default?

I see on the Viper page that the way to turn on viper mode by default is (setq viper-mode t) (require 'viper) I've been trying to move over to using customize to do emacs configuration. Is there a ...
2
votes
2answers
96 views

Update target of internal org-mode link

I have a document full of internal org-mode links of the form: * Target Heading ... [[Target Heading][Description]] However, these break whenever I edit the heading that they link to, so I want to ...

15 30 50 per page