Questions tagged [spacemacs]

Spacemacs is an Emacs layer focused on modal editing via Evil mode, mnemonics and easy configuration, and the space bar. Use this tag if your question relates to Spacemacs-specific functionality.

Filter by
Sorted by
Tagged with
4
votes
1answer
149 views

Extract title from bibtex

I want to extract the title of a bibtex entry by using a convenient org-ref function. Is there a way? How? Im using org-ref with org-mode in spacemacs.
0
votes
1answer
105 views

Why are there escape sequences in my *Warnings* buffer and how to get rid of them?

I got this warning while trying to activate the python layer in spacemacs. However, the escape sequences are not unique to this situation; they are usually present whenever there are warnings in the *...
1
vote
0answers
90 views

When M-x desktop-read, theme elements incorrectly restored / displayed: previous theme saved into desktop file?

I'm a new Emacs user, and I've come across a quirk: I use a light theme during the day, and I've configured theme-changer to switch to a dark theme after sundown; it works wonders. However, when I ...
1
vote
2answers
112 views

Inserting text after current point

I've got a mild annoyance that I'm sure is fixable, but I'm not sure where to look. When using org-ref-helm-insert-cite-link to insert citations in my org documents, the citation is inserted at the ...
2
votes
3answers
883 views

Getting Rid of Constant “Recentf Changed On Disk” Error

I use spacemacs. It seems like every time I switch windows from spacemacs and come back to it I get the annoying error recentf changed on disk; really edit the buffer? I have tried disabling recentf ...
2
votes
1answer
469 views

Start spacemacs with specific layout open

I have a custom layout, which I can open with SPC l o f. Is there a way to start Emacs with a flag that would automatically load it at startup? I tried this way: emacs --eval '(persp-switch "Asd")' ...
0
votes
0answers
201 views

Spacemacs menu in mini-buffer displays Dired+ “C-x D A” command unreliably

Two weeks ago I installed Dired+. I successfully used Dired+ C-x D A (diredp-add-to-dired-buffer) command. But the Dired+ C-x D A command is not always available. Sometimes after C-x, the D appears ...
4
votes
2answers
686 views

Moving cursor to the middle of the line where it currently is

Is there a way to define a function that, when called, would move the cursor to the middle (or close to the middle) of the current line, similarly to how we can move it to the beginning and end of the ...
-1
votes
1answer
81 views

Emacs Lisp Error when called as command but works well when called as function

https://github.com/Cheatinikle/Spacemacs-settings/blob/master/emacs-package/preetest-mode.el This is my full source code, and 'just-utils package is also included in the repository. The problem is, ...
2
votes
2answers
2k views

how to set truncate-lines in org-mode in spacemacs by default

Whenever I open up an .org file in spacemacs, the truncate-lines variable is set to t. How can I make truncate-lines be set to nil by default in org-mode in the org-layer for spacemacs? I would like ...
0
votes
2answers
230 views

Applying settings based on directory

I am using spacemacs to work on a few different projects and these projects have vastly different coding standards. Tabs vs spaces, 80 columns vs 100 columns, etc, etc. I'm trying to define a way to ...
3
votes
1answer
830 views

how to get correct indentation after pressing 'o' in haskell-mode using evil-mode in spacemacs

When using haskell-mode (the Haskell layer) with evil-mode keybindings in spacemacs, the indentation created by pressing the o key is often incorrect. For instance, imagine I want to write the ...
1
vote
1answer
476 views

Frequent anaconda-mode buffers pop-up with “No such file or directory”

Running spacemacs on OSX. Using Anaconda. Every few keystrokes in a .py file, a buffer will pop up in anaconda-mode (which I have tried to disable with M-x anaconda-mode) /Applications/Emacs.app/...
4
votes
1answer
5k views

spacemacs auto-complete layer: showing the difference between a snippet and a dictionary word

Say, I have been using Spacemacs for a while now, and was looking at Spacevim a bit. One nice feature of Spacevim is that it's autocompletion feature includes both the words for completion as well as ...
1
vote
1answer
711 views

How to have a remote terminal inside Spacemacs, like a PuTTy within Emacs? [duplicate]

My question is about mimicking PuTTy inside Spacemacs in Windows, not about using Spacemacs via PuTTy. That is, I am interested in learning whether it is possible to open within Spacemacs a remote ...
0
votes
1answer
339 views

In Spacemacs, how can I conditionally set line-wrapping on only for text files (i.e. in text mode)?

I want to have Spacemacs wrap around long lines, but only in text files (i.e. text mode), not in programming language files (i.e. program mode). How could one achieve that? I know that to turn on ...
6
votes
3answers
522 views

How to turn off autocompletion for numbers (and numbers only) in company-mode in spacemacs

When typing a number in spacemacs all kind of numbers are being suggested. I can autocomplete them with enter. I like this behaviour in the case I'm typing words (made up of letters). But I don't want ...
1
vote
2answers
4k views

In Spacemacs, how to customize keybindings that are condition on language file?

Here is what I would like to do. I would like to customize key bindings that point to a different command depending on the file type on which the user is operating. For instance, if one presses f5 in ...
1
vote
0answers
566 views

Is it possible to have IPython qtconsole open as the default python console in Spacemacs?

Whenever I open a Python script in Spacemacs, I do C-c C-p to launch a console embedded - a console that is, by default, actually an iPython console. Here is what I would love to be able to ...
3
votes
2answers
2k views

Working with LaTeX in Spacemacs: can PDFs be seen in a buffer, rather than via external PDF reader?

I have been using the latest version of Spacemacs, with AUCTeX. However, when I compile the .tex file into a .pdf file, it opens in my default external PDF viewer software. Is there a way to make ...
0
votes
0answers
903 views

Emacs init with spacemacs fails all the time - Error connection time out for melpa repository

I installed GNU Emacs 25.2.1 64bit and downloaded spacemacs the way it is described in their git repo. Now when starting up through runemacs.exe the following output occurs: Warning (spacemacs): ...
1
vote
1answer
1k views

spacemacs: how to unset the keybinding of undo with 'u'

I don't want to have key 'u' bound to undo-tree-undo, as it's too conveniently dangerous to confuse with u for universal argument prefix. I tried (global-unset-key "u") But it didn't have any ...
3
votes
1answer
873 views

Open vertical splits to the right

Using spacemacs with Evil. :vsp opens a new split vertical, but it always does it to the left. How can one configure it to open them to the right?
0
votes
0answers
202 views

How to change the command for comment toggling

spacemacs with Evil uses gcc to toggle whether a line is commented or not. I'd like to change it to ,cc. How should I go about this in my .spacemacs file?
3
votes
1answer
609 views

How to set the keybinding for addind the hash symbol (#) in spacemacs with MacOS and an UK keyboard

I'm using spacemacs on a Mac OS X laptop with a UK keyboard and I want to be able to use Alt-3 (M-3) to insert the hash symbol #. I tried to add this function that I found on this SO answer without ...
2
votes
1answer
238 views

“locate: illegal option --b” in HELM locate mode

Here is the screenshot The mode is triggered by SPC-f-L . I am using OSX and locate is already installed. How can I solve this issue? Install a different version of locate or Change the behaviour ...
0
votes
1answer
301 views

How to disable Prelude Emacs and use system-wide Emacs

I have installed Prelude Emacs by using wget --no-check-certificate https://github.com/bbatsov/prelude/raw/master/utils/installer.sh -O - | sh. I am using Debian and new to Emacs. Now whenever I run ...
1
vote
1answer
124 views

What are the '.#' links for? [duplicate]

When an Emacs buffer is modified, a broken link is created. The link's name is a concatenation of '.#' followed by the file's name. For example: $ ls .#spacemacs_ref.org -l lrwxrwxrwx. 1 wolfv wolfv ...
4
votes
2answers
690 views

What is this mode and how can I quit it?

Through some key combinations somehow I am trapped in this mode: Orange highlight appears on the left hand side and a orange cursor is activated. It does not look like it is selecting anything. I ...
1
vote
1answer
729 views

disable auto-completion for all buffers by default in spacemacs

Is there a way to keep auto-completion enabled as a layer, but have it disabled by default in spacemacs? For example, I want to have the auto-completion layer enabled in dotspacemacs-configuration-...
2
votes
1answer
236 views

How to highlight search tool matches in minibuffer?

These search tools list results in the minibuffer, but the matches are not highlighting: SPC s a f (ag) SPC s g f (grep) SPC s k f (ack) SPC s t f (pt) Help describe does highlight matches. Would ...
8
votes
1answer
984 views

What is “Symbol Highlight Transient State”?

Pressing * (spacemacs/enter-ahs-forward) works like visual star in Vim, except for the mini buffer: What is "Symbol Highlight Transient State" in the mini buffer about? Where is the documentation ...
2
votes
2answers
3k views

Spacemacs: Toggle vim/emacs mode globally

When using Spacemacs on vim mode, you can toggle between Emacs/Vim modes with Ctrl-Z. This works per buffer, is there a way to do this globally so when you switch to a mode, every buffer you open/...
0
votes
1answer
156 views

How to install evil-snipe-enable-alternate-f-and-t-behaviors on Spacemacs?

I am trying to install "evil-snipe" with evil-snipe-enable-alternate-f-and-t-behaviors on Spacemacs. The instruction on https://github.com/syl20bnr/spacemacs/tree/master/layers/%2Bvim/evil-snipe are ...
3
votes
3answers
1k views

Spacemacs: How do I set a key in anaconda-mode?

I'm using the python-layer and am trying to set M-r to run replace-string while editing Python files. I've tried all of the options below from inside the function dotspacemacs/user-config. Help? ;; ...
6
votes
1answer
7k views

How to learn Dired in Evil mode?

I am learning Dired in Evil mode. h j k l / are Evil keys that obviously work in Dired. Are there others? Is there a table of Evil keys for Dired? I am using Emacs 25.2.1 with Evil, Spacemacs, and ...
3
votes
2answers
844 views

Evil and org-mode keybinding 't' conflict

In Spacemacs with evil and org-mode, the letter 't' is assigned to two functions: org-todo (don't need this because I use shift-arrow to cycle through todo states) evil-find-char-to (I need this) ...
3
votes
1answer
398 views

saving clipboard takes forever on quit

When closing spacemacs, I get the message "Saving clipboard to x clipboard manager...". The saving process ends up taking so much time that I have to kill emacs from the terminal. How can I disable ...
0
votes
1answer
226 views

describe-bindings not working as expected

Spacemacs Help SPC h d b (describe-bindings) is not working as expected. I type SPC h d b, and then enter the bindings: SPC f e d not listed in the minibuffer, but the binding works SPC f e R not ...
0
votes
1answer
150 views

Spacemacs - disable last ex command repeat on empty input

On vim, an empty ex command (:) leads to a noop upon pressing enter. On Spacemacs (or Evil in general maybe), it re-runs the last command. Is there a variable I can tweak in my configuration to make ...
0
votes
1answer
348 views

how can i access diff-hl-flydiff-mode?

i'm using spacemacs with emacs 25.2.1 on windows8.1 64bit. Description: i want to use diff-hl-flydiff-mode. Tried: First i activated the spacemacs layer version-control. That works. But how can ...
6
votes
1answer
2k views

Org-Mode correct indentation

I am using spacemacs and try to use full text indentation. When I execute "visual-line-mode" and "adaptive-wrap-prefix-mode" by hand via M-x the text will indent, when I edit it. Of course I tried to ...
0
votes
1answer
1k views

How to add matlab integration-spacemacs?

I already installed matlab-mode from the package list. However, not sure where to add the path in ~/.spacemacs. Its a huge file, and the code structure look different from the path file: (...
1
vote
1answer
99 views

Spacemacs like function overview in Emacs

I previously started using spacemacs, but after a while I wanted to make my own configuration from scratch with a clean install of emacs. I'm trying to get some functionality available in spacemacs, ...
1
vote
1answer
1k views

How can I make a custom font-lock keyword regex?

I'm new to emacs (spacemacs) and have been trying to get org-mode to highlight quoted strings "like this" and quoted strings 'like this'. I followed the example here, and came up with this: ;; ...
1
vote
1answer
755 views

What does 'State xxx cannot be set as an initial Evil state' mean?

When I try to enter a command such as set number in Spacemacs, I get the error State number cannot be set as initial Evil state. What is an initial evil state and what does the error message actually ...
2
votes
3answers
1k views

Hide mouse pointer while typing

Some programs, like many terminal emulators and gVim, hide the mouse pointer as soon as the keyboard is in use. Obviously, this is helpful when the mouse pointer happens to obscure some text behind it....
5
votes
1answer
187 views

Syntax highlighting is breaking in long bibtex files (spacemacs bibtex layer)

So I have a long papers.bib bibtex file that I edit with emacs (spacemacs bibtex layer), but the syntax highlighting only ever goes about halfway down. Here it is at about line 790: Other times this ...
1
vote
1answer
194 views

Custom title format in iTerm2 / Terminal

I've been looking all over but none of the guides I saw worked for me. I am trying to have the title of Spacemacs to show a custom format, namely the current project's name (the current folder's name)...
2
votes
0answers
103 views

Automatic close evil-make buffer

I'm using evil mode (Spacemacs to be specific) and working with LaTeX projects. I use evil-make or :make command to compile the current LaTeX project to PDF file. I find it quite annoying that ...

1
7 8
9
10 11
15