All Questions

0
votes
0answers
15 views

Spacemacs: Save, compile and run Cabal project

I am working on a small Haskell project in which I have to tweak many parameters by trial-and-error. I am using Spacemacs with the pre-configured Haskell Layer. I can't really use the REPL, because ...
0
votes
1answer
25 views

Select text on first line AND another text on third line by regexp

Suppose I has 2 jsons: { ...
1
vote
0answers
23 views

Idempotent `beginning-of-defun`

How to obtain/implement a beginning-of-defun drop-in replacement that is idempotent? i.e., if I already am at the beginning of a defun, beginning-of-defun should do nothing, rather than jumping to ...
0
votes
1answer
31 views

How to make `emacs` shell command switch to existing emacs process, if it exists?

Is there a way to get the emacs shell command (the UNIX utility) to start an emacs process, if none exists, but if one does, switch to it? More specifically, is there a way to get the command emacs ...
0
votes
0answers
15 views

Projectile regenerating tags using global

I'd like projectile's projectile-regenerate-tags to run global -u. It seemed this was catered for with projectile-tags-command. Which is set to "global -u" in a project root .dir-local.el However, ...
0
votes
1answer
65 views

emacs (v24.3.1): command line '--' before the file name

I have a RHEL 7 box, and I've installed emacs onto it (v24.3.1). This version of Emacs seems to be broken. You used to be able to edit by entering a command like this: emacs -- somefilename.txt and ...
1
vote
0answers
26 views

Customizing tags auto-completion

Is it possible to tweak auto-completion of tag names to make it seem like if there were multiple levels of tags? For example: * Movie A :entertainment:movies:action: * Movie B ...
0
votes
0answers
9 views

Is there a way to restrict history in shell-mode?

I run lots of test in shell-mode because I love being able to search through the history. However, some of these tests print lots of info to stdout and will cause my memory usage to go through the ...
5
votes
2answers
81 views

Is there an emacs command to go to end of code line (before line comment and whitespaces start)

say you have that: stuff indented stuff # commented stuff We already got move-beginning-of-line and back-to-indentation for the left side. Now, for the right side... I'd love to know if you ...
0
votes
1answer
52 views

Why isn't the jch's “with-undo-collapse” macro an emacs built-in yet?

I wondered why the jch's with-undo-collapse macro (or something like that) isn't an emacs built-in yet. Is it safe enough? Is there a built-in alternative? I mean something that can be applied like ...
0
votes
1answer
30 views

Invalid function: treemacs-block

I use treemacs for project management. For some reason (even if I don't have treemacs buffer opened) when I try to launch Dired for the first time I get invalid function: treemacs-block What is even ...
0
votes
0answers
12 views

Why some frame-parameters don't work when calling display-buffer-in-child-frame?

Why some of a frame parameters don't work in a function below, for example (minibuffer . nil), but they all work if i use make-frame function. (defun create-nframe () (let ((buffer (generate-new-...
0
votes
1answer
70 views

Use magit to display the difference between two branches

Is there a way to bring up a big list of the differences between specific commits across two branches? I tried the method described in this answer but it came back empty, I assume because the ...
0
votes
1answer
34 views

prog-mode-hook not recognizing .ex files in user-config

I'm trying to display prettify-symbols-mode to display for certain characters. I would like for this minor mode to be enabled across all programming languages - thus prog-mode. When I navigate to a ....
5
votes
1answer
70 views

require 'cl or require 'cl-lib

In order to include Common Lisp compatibility I've seen both (require 'cl) and (require 'cl-lib) Which is correct? As I understand the cl-lib is the later of the two, but is it safe to use just ...
0
votes
0answers
41 views

How to set/scale font to get 80 column width on emacs

How can I make it so that I can see 80 characters in my emacs window? For example, I connect my laptop to an external monitor somewhere, start emacs, and maximize it to the full screen. I want a font ...
1
vote
1answer
39 views

Automatically scroll *compilation* window, beside source-buffer window

I edit C in two windows side-by-side, source on left, compilation results on right. I have F5 bound to recompile. Currently I have to do: F5 to run make, Move to *compilation* buffer in right ...
0
votes
0answers
21 views

buffer opens in window below if font size is changed

In my config file I changed the line (set-face-attribute 'default nil :height 100) to (set-face-attribute 'default nil :height 90) and suddenly, when I try to open a file in a separate vertical ...
1
vote
0answers
87 views

Remove scrollbar, faster

I like a clean interface. One without the clutter of scroll bars, or menu bars. So, to remove them, I have the following in my init.el (progn (menu-bar-mode -1) (scroll-bar-mode -1) (tooltip-...
0
votes
1answer
45 views

How safe is “with-silent-modifications” to mask (hide) strings before and after buffer modification?

In my LaTeX code I want to replace one-line eqnarray environments with the equation environment. To do that I need to "count" the new-line (\\) strings in a region and I also need to ignore some new-...
0
votes
1answer
35 views

Emacs shell on OSX with zsh and iterm displays weird characters

I am using Emacs for OSX along with iTerm and zsh, when I load up a shell via M-x shell and run pwd and various other commands, weird chars are outputted in the result of the command. pwd: [j:~]$ ...
3
votes
1answer
52 views

Org-mode: how to collapse contiguous clock time intervals

I use Org-mode in Emacs to keep track of time. I sometimes clock in and out of the same task back-to-back, leading to two contiguous clock time intervals, such as: CLOCK: [2019-02-27 Wed 10:21]--[...
1
vote
1answer
37 views

Mode-line not updated after checking out new branch using Magit

I create and checkout a new local branch via magit. Pressing M-x magit-status then b c for branch create and in the magit buffer I see the new name of the branch that I am apparently on. However ...
0
votes
2answers
64 views

enabling additional flycheck-checker for spacemacs html layer

I can't seem to enable the scss-stylelint checker for scss-mode. flycheck-verify-setup gives me this: Syntax checkers for buffer _typography.scss in scss-mode: scss-lint (disabled) - may ...
0
votes
0answers
38 views

GPG Encryption & EasyPG

Does anyone here regularly use Emacs to interact with GPG encrypted files and, if so, what has your experience been? The Problem: I've been using Emacs (on OS X) to regularly edit a couple of GPG ...
1
vote
1answer
25 views

Limit number of files saved by emacs in desktop-save

I tend not to delete buffers in emacs, so over time, the number of buffers tends to grow to a hundred or more. (At the moment, *Buffer List* has 144 lines.) Many of these files are java files, and ...
0
votes
1answer
28 views

How to set utf-8 encoding for *markdown-output* buffer?

I have emacs-24.5 installed on Windows 10. Many utilities are configured through cygwin, including perl. When in Markdown mode every so often after I press C-c C-c p to run the external markdown.pl ...
0
votes
0answers
33 views

strange minor modes and how to diminish them

I am working in a python file and thought I have diminished all modes accordingly, also yapfify. However, that does not seem to be the case as one can see in the screenshot. What are those cryptic ...
0
votes
0answers
39 views

How to use \blockquote in org-mode?

I am trying to use \blockquote from the csquotes package like this: \blockquote[cite:authoryear]{text to quote} or this: \blockquote[{cite:authoryear}]{text to quote} but in both cases, when I try ...
1
vote
0answers
39 views

Find cause of cpu-usage?

Is there some way to find out, what in Emacs is causing spurious cpu usage? Since a few days I notice Emacs retaining high CPU usage despite not being used actively, having no subprocesses, and not ...
0
votes
1answer
12 views

comint: show the original input when match-cycling through history

Currently, I have bindings for comint-previous-matching-input-from-input and comint-next-matching-input-from-input. My problem is this. Suppose I am on a prompt with some text (say, "x = ") and issue ...
0
votes
1answer
36 views

Stop automatic removal of space before point when inserting `.` (dot)

The following gif shows the behaviour quite nicely: Whenever I type a space followed by a dot (.) in any mode derived from text-mode, emacs will replace the space with the dot. I could not want this ...
0
votes
1answer
22 views

How to completely clean Spacemacs from the not longer required mode?

Once I enable a local major-mode. After some time I decided to remove it. So I deleted it from disk as well as from configuration (SPC f e d). But it is still available in my Spacemacs. At least ...
1
vote
1answer
44 views

change auto-save directory

I defined these lines in my .emacs initialization file to change the location for backup and auto-save files. (defvar BACKDIR (expand-file-name "~/emacs_backup/")) (setq backup-directory-alist `((".*"...
0
votes
1answer
33 views

How company-mode suggestions are delivered?

I am curios whether there exist a side-channel possibilities for emacs company-mode. I thought, since company-mode suggests words that matches the given prefix, the suggestions may leak some sort of ...
1
vote
0answers
45 views

Org-ellipsis displayed inorrectly for some headlines only

So in order to customize my org mode files, I have (setq org-ellipsis "⤵") in my config, which seems to be a very popular customization (the arrow being U+2935). This works correctly for the most ...
2
votes
0answers
29 views

How do I link an email from a webpage to mu4e?

So when I press a link in, for example firefox, it open Emacs mu4e "Compose email" with the receiver attached. I’m on Linux.
0
votes
1answer
21 views

python.el: auto save buffer before python-shell-send-buffer

Can python.el be set up in a way that it will automatically save the current buffer when python-shell-send-buffer is called (e.g. by C-c C-c)?
0
votes
0answers
27 views

Deleting temporary files left over from inferior-python-mode

I am using emacs on a server so files in /tmp are not automatically cleared down. Every time inferior-python-mode runs, it leaves files in /tmp (e.g. /tmp/py15458epk). I'm looking for a more elegant ...
0
votes
0answers
18 views

Sending email with attachment and using 'recipient-filename'

I am using message-send-and-exit (with mu4e) to send an email with an attachment. I would like to rename the file so that in the email it appears with a different name than my local file. According ...
1
vote
1answer
41 views

Hide export option names (#+TITlE, etc) in org mode without hiding value

Where it says #+TITLE my title I want it to just say my title, same with author and date and then I want to hide the other attributes... How would I do this?
0
votes
2answers
30 views

How to make new text highlighted as well?

Run in *scratch*: (progn (fundamental-mode) (hi-lock-mode 1) (highlight-regexp "." 'hi-pink)) Result: If I add text it is not highlighted depending on where I add it: How can I make all newly ...
0
votes
0answers
16 views

magit options when dealing with a failed git-am

I'm not sure if I'm missing something or if this is a missing feature but occasionally when I attempt to apply a patch from my mail box git completely fails to apply it. This isn't a case of ...
1
vote
2answers
30 views

How to run selected bash commands

I have a large bash script and I need to rerun certain lines of code. Normally I would comment out any line I don't want to run and then execute the file on the shell. But that is rather cumbersome. I'...
1
vote
0answers
19 views

Colors do not get saved [duplicate]

I want to color a word in emacs. So I open a somefile (C-x C-f somefile) and a write some silly sentence. Now I want to colorize the word silly with yellow. So, with the mouse I chose Edit > Text ...
0
votes
1answer
19 views

Shell-mode execute script every time a shell is invoked

I have changed the emacs-shell mode shell to WSL ubuntu but however, the prompt is not very user-readable. For this reason I would like to execute a script that changes it so that its more readable ...
0
votes
0answers
22 views

Check for active ERC process in Elisp and join channel

I try to join an IRC channel with ERC in my elisp script. If there is no active ERC process running I want to create one. So far I got this: (progn (if (not (and (fboundp 'erc-buffer-list) ...
0
votes
0answers
13 views

yasnippet in f90 mode

I'm using autocomplete and yasnippet, therefore I added (define-key yas-minor-mode-map (kbd "<tab>") nil) (define-key yas-minor-mode-map (kbd "TAB") nil) (define-key yas-minor-mode-map (kbd "&...
1
vote
0answers
21 views

binding a minor mode's function to already defined key in global-map

(use-package anaconda-mode :defer t :config (progn (unbind-key "M-." anaconda-mode-map) (unbind-key "C-_" global-map)) :bind ((:map anaconda-mode-map ("C-_" . anaconda-...
1
vote
1answer
36 views

helm narrow to subtree

I am using helm-org-in-buffer-headings to search headings in the current buffer. I am using this script (provided by jagra here) to activate follow mode: (with-eval-after-load "helm-org" (cl-...

15 30 50 per page