These are chat archives for syl20bnr/spacemacs

13th
Oct 2016
Cassiel-girl
@Cassiel-girl
Oct 13 2016 00:06 UTC
how to diff the difference between current buffer and master version using magit in space?like use git diff "xxx.xx"
Swaroop C H
@swaroopch
Oct 13 2016 00:24 UTC
@Cassiel-girl SPC g s? Or are you on a branch other than master?
Cassiel-girl
@Cassiel-girl
Oct 13 2016 00:24 UTC
this show the unstaged files
Swaroop C H
@swaroopch
Oct 13 2016 00:26 UTC
@Cassiel-girl You can navigate to the file you are interested in using j and k keys, and then hit TAB to see the changes
@Cassiel-girl Alternatively, in the buffer, you can use SPC g . (notice dot) and use n and p to navigate.
Cassiel-girl
@Cassiel-girl
Oct 13 2016 00:27 UTC
I don't want to compare between versions.
just current modified buffer and HEAD version.
Swaroop C H
@swaroopch
Oct 13 2016 00:28 UTC
@Cassiel-girl Yes, those are the changes it is going to show
Cassiel-girl
@Cassiel-girl
Oct 13 2016 00:28 UTC
SPC g .?
Swaroop C H
@swaroopch
Oct 13 2016 00:28 UTC
yes
Thomas Stenhaug
@karvus
Oct 13 2016 00:35 UTC

I have the same issue as @riwim mentioned earlier today.

Skipping rebuild of c:/Users/thoma/.emacs.d/.cache/quelpa/packages/evil-unimpaired-0.1pre0.20161013.05215.el
Error getting PACKAGE-DESC: (file-error Opening input file no such file or directory c:/Users/thoma/.emacs.d/.cache/quelpa/packages/evil-unimpaired-0.1pre0.20161013.5215.el)

On Windows, using emacsbinw64, tried both the 24.5.1 release as well as the 25.1 release. with Spacemacs 0.200.1. Fresh install.

Any known fixes for this?

Cassiel-girl
@Cassiel-girl
Oct 13 2016 00:36 UTC
Swaroop C H : I don't have this key map SPC g .
Thomas Stenhaug
@karvus
Oct 13 2016 00:38 UTC
The file in question is present in the filesystem.
Yu Shen
@yubrshen
Oct 13 2016 00:45 UTC
@koterpillar the problem of "Error running timer ‘which-key--update’: (void-function display-buffer-in-major-side-window)" when typing SPACE as leader key is indeed solved by running with emacs 25.1, instead of 26. (Moral of story, for production tool of spaceemacs, don't run on the bleeding edge!)
Thomas Stenhaug
@karvus
Oct 13 2016 00:45 UTC
And the problem is the same and the develop branch, and with emacs binaries pulled from ftp.gnu.org
Alexey Kotlyarov
@koterpillar
Oct 13 2016 00:51 UTC
...I see.
Rudi Grinberg
@rgrinberg
Oct 13 2016 01:52 UTC
what's the difference between perspectives and eyebrowse?
Chad Walstrom
@runswithd6s
Oct 13 2016 02:03 UTC
Anyone else having recent issues with mu4e on Debian w/0.200.0 and 0.200.1?
adandersen
@adandersen
Oct 13 2016 02:10 UTC
@rgrinberg layouts and sub-layouts is the core idea. You can have multiple layouts which are buffer isolation zones, and then within that layout you can have sub-layouts which allow each layout to have multiple window areas
perspectives are the layouts, eyebrowse takes care of the sublayouts. You access the layouts with spc l and the sublayouts with spc l w, although i think the sublayouts are called workspaces
Cassiel-girl
@Cassiel-girl
Oct 13 2016 02:30 UTC
how to diff the difference between current buffer and master version using magit in space?like use git diff "xxx.xx"
braham-snyder
@braham-snyder
Oct 13 2016 02:49 UTC
SPC g s for magit status, then ? for a help popup
Cassiel-girl
@Cassiel-girl
Oct 13 2016 03:30 UTC
there is diff cmd, but it will show all the diff
"SPC g s, then ? 's diff" will show all the diff of unstaged files. I just want to show the current buffer file.
braham-snyder
@braham-snyder
Oct 13 2016 03:32 UTC
"limit to files"
I installed a newer matlab package than that provided in extra-langs, and want to Spacemacs-ify its keybindings. However, I can't seem to define a new prefix or command in this mode, only rename them. For example, this in my dotspacemacs/user-config doesn't appear to achieve anything:
  (spacemacs/declare-prefix-for-mode 'matlab-mode "m" "major-mode-cmd")
braham-snyder
@braham-snyder
Oct 13 2016 03:39 UTC
replacing "m" with "4" renames the which-key listing for 4, but I can't make any new categories
I notice in declare-prefix-for-mode that it looks like it tries to automatically add "m" as a prefix if the mode is a major mode, but I don't see that category in which key. Additionally, attempting to directly add a command with stuff (spacemacs/set-leader-keys-for-major-mode 'matlab-mode "d" 'matlab-shell) doesn't seem to accomplish anything.
Does this sound like a bug, or am I misunderstanding something?
braham-snyder
@braham-snyder
Oct 13 2016 03:46 UTC
Oh, and replacing matlab-mode with python-mode does allow me to add that command in python-mode.
braham-snyder
@braham-snyder
Oct 13 2016 04:30 UTC
not sure how I missed syl20bnr/spacemacs#6943, but that makes it sound like it's probably an upstream bug
Dom De Re
@domdere
Oct 13 2016 04:51 UTC
@Cassiel-girl theres also SPC g . (it needs the version-control layer also)
@braham-snyder indeed, if you look at line 1110 of matlab.el, you see that matlab-mode is not a proper major mode. It should be defined by define-derived-mode, not a regular defun.
and btw, according to the melpa recipe, I believe Spacemacs uses the same matlab-mode from sourceforge
Eivind Fonn
@TheBB
Oct 13 2016 06:47 UTC
Yep.
I tried to get them to fix this but they cite xemacs compatibility.
abo-abo has a fairly extensive fork of matlab-mode that might work better but I don't know how committed he is to maintaining it
Boris
@d12frosted
Oct 13 2016 07:00 UTC
his fork is pretty active
but his readme should be updated :smile_cat:
Zhe-xuan Yang
@zhexuany
Oct 13 2016 07:09 UTC
Anyone can explain this to me? I recently started to use Go layer. I did everything said in README.md, but I still have following error : eldoc error: (file-error Searching for program No such file or directory gocode) [2 times]
I definitely set the GOPATH
Boris
@d12frosted
Oct 13 2016 07:41 UTC
@TheBB haha syl20bnr/spacemacs#7370
Xi Xiao
@Xixiao007
Oct 13 2016 07:46 UTC

Question: how to load a local el file in my own custom layer?

Details:
In my spacemacs custom layer, I wanted to load a local robot-mode.el downloaded from https://github.com/sakari/robot-mode/blob/master/robot-mode.el .
My steps:

  1. create the custom layer called xixiao-custom
  2. in autocreated packages.el file insert
    ```
    (defconst xixiao-custom-packages
    '(
    (robot-mode :location local)
    )
    )

(defun xixiao-custom/init-robot-mode ()
(use-package robot-mode
))
```

  1. put the robot-mode.el to relative path local/robot-mode/robot-mode.el under the custom layer location.
  2. launch spacemacs, error Required feature 'robot-mode' was nto provided
Eivind Fonn
@TheBB
Oct 13 2016 07:50 UTC
@Xixiao007 There's no (provide 'robot-mode) in robot-mode.el
Therefore it's not possible to load it via (require 'robot-mode) (which is what use-package does)
You'll need (load "robot-mode") instead probably.
Xi Xiao
@Xixiao007
Oct 13 2016 07:53 UTC
@TheBB thank you! This really helped, I need to read your load instruction doc again now :)
Jaakko Luttinen
@jluttine
Oct 13 2016 08:38 UTC
are there spacemacs-keybindings for selecting and then cutting/deleting/copying the selected rectangular region?
S-v selects lines, i'd like to have similar but for rectangular regions..
Eivind Fonn
@TheBB
Oct 13 2016 08:42 UTC
C-v
It's from vim, not Spacemacs.
Jaakko Luttinen
@jluttine
Oct 13 2016 08:45 UTC
thanks!! <3
Francesc Elies
@FrancescElies
Oct 13 2016 09:10 UTC
Hi,
is there someone using gnus with Spacemacs? At the moment I am switching to hybrid mode and using the default keybinding for gnus.
I had a look at the specific Spacemacs keybinding for gnus in the docs but I could not understand how to use them properly.
Does anyone have any tips how to use gnus? If the documentation is out of date I would also be glad to update it.
Thanks in advance for your time!
James Wood
@laMudri
Oct 13 2016 09:20 UTC
I'm on master, and in dotspacemacs/init I have dotspacemacs-command-key ",", and in dotspacemacs/user-config I have (define-key evil-motion-state-map ":" 'evil-repeat-find-char-reverse). Any idea why neither is working, i.e, pressing : still gives command mode and , still gives reverse ;?
@laMudri dotspacemacs-command-key was replaced by dotspacemacs-emacs-command-key and dotspacemacs-ex-command-key, and is now an alias for dotspacemacs-emacs-command-key. did you not update your dotfile when upgrading to 0.200?
James Wood
@laMudri
Oct 13 2016 09:25 UTC
@bmag are you suggesting that there's some automated dotfile upgrade script?
@FrancescElies I don't use gnus, but from what I read the default key-bindings for gnus are the way to go, but they are evilified so you shouldn't need to switch to hybrid-mode (what do you mean by that, btw?) for them to work
@laMudri not automated, by SPC f e D opens an ediff session between your dotfile and the template
James Wood
@laMudri
Oct 13 2016 09:26 UTC
Oh, okay. Thanks!
? in ediff session shows help
dubnde
@dubnde
Oct 13 2016 09:58 UTC

Trying to use doom-one or doom-molokai them and getting the following message

Warning (spacemacs): An error occurred while retrieving the theme, using default theme. (error: (file-error Cannot open load file no such file or directory dash))

Anyone tried either theme above? It worked the first time I tried it but now theme doesn't take effect with above message. On ubuntu 14.04

Eivind Fonn
@TheBB
Oct 13 2016 10:08 UTC
It's fixed in develop.
dubnde
@dubnde
Oct 13 2016 10:11 UTC
I am on develop
If I then delete the doom-themes-* package from elpha folder, the theme loads okay. But then fails as above on subsequent spacemacs restart
Eivind Fonn
@TheBB
Oct 13 2016 10:15 UTC
Ah ok it has dependencies.
You're kind of up shit creek then since Spacemacs loads the theme before it initializes packages.
One more for syl20bnr/spacemacs#7373 I guess
dubnde
@dubnde
Oct 13 2016 10:21 UTC
Thanks @TheBB . Will keep a watch on the issue above
Francesc Elies
@FrancescElies
Oct 13 2016 10:29 UTC
@bmag thanks for your reply, for example when I press G it goes to the end of the buffer in evil mode, but if I switch mode and press G again gnus offers many commands under this key.
Mitchell Hunter
@Mitchicus
Oct 13 2016 10:34 UTC
@dubnde I've been able to use doom-one as long as it isn't first in the list of spacemacs themes, I just have it load the theme in my user-config with (spacemacs/load-theme 'doom-one) even though during the startup, it will be whatever other theme you have first in the list
Eivind Fonn
@TheBB
Oct 13 2016 10:35 UTC
Yep, that's one way to work around it.
Mitchell Hunter
@Mitchicus
Oct 13 2016 10:35 UTC
And after that I can cycle through the themes just fine
dubnde
@dubnde
Oct 13 2016 10:41 UTC
@Mitchicus thanks.
@FrancescElies that's because of the evilification. Details here: http://spacemacs.org/doc/DOCUMENTATION.html#evilified-modes
@FrancescElies if the original G binding is an important one, you can make PR/report an issue with an alternative binding
Francesc Elies
@FrancescElies
Oct 13 2016 10:51 UTC
yes exactly, so the question is how do I avoid that if I am in evil mode?
ok I see :)
I like it when the docs have the answers :smile:
Francesc Elies
@FrancescElies
Oct 13 2016 10:52 UTC
Thanks! :+1:
This (evil-set-initial-state 'gnus-group-mode 'emacs) avoids switching each time, would this be welcome to be added in the layer description?
@FrancescElies honestly, I don't know. It's a bit unnecessary, and I think will be inconsistent with the documentation for other evilified modes, but maybe that's not too bad
Francesc Elies
@FrancescElies
Oct 13 2016 12:18 UTC
No problem, thanks for your help :)
Is there a way to make emacsclient open to home buffer when not given a file? Similar to emacs when first started. I'm trying to run it with "emacsclient -c -a ''" but this causes the new client to open same windows/layout as the previous client session.
Mitchell Hunter
@Mitchicus
Oct 13 2016 13:17 UTC
@IDex emacsclient -c --eval "(progn (spacemacs/toggle-maximize-buffer) (spacemacs/home))"
might be an easier way, but it works ;)
just wrap that up in a shell script to do it conditionally if you pass no argument or something I guess
Peter Nagy
@xificurC
Oct 13 2016 13:22 UTC
SPC p f creates a helm buffer where one can fuzzy match on a project's files. Is there a similar command that can work with a directory? So calling it would prompt for a directory and allow fuzzy matching inside the given directory only. SPC p f lists the full path of the files which makes it nice to fuzzy search deep in the directory levels by writing 1-2 directory names and then the file name. So the same thing but for a specified directory
@Mitchicus Thanks! This does just what I was looking for.
Mitchell Hunter
@Mitchicus
Oct 13 2016 13:34 UTC
@IDex np, might end up using it somewhere myself :D
Thomas de Beauchêne
@deb0ch
Oct 13 2016 13:44 UTC
Anybody already used clang-ctags ? Any thought on this ?
Jaakko Luttinen
@jluttine
Oct 13 2016 14:39 UTC
does anyone know how to use ipdb instead pdb for debugging python?
(with pytest)
Ta'iř sj Ořit
@Radvendii
Oct 13 2016 15:06 UTC
I'm trying to make a package for spacemacs in nixpkgs, and I'm wondering how necessary it is considered to keep up to date with the current version of spacemacs? Is it problematic to keep using an old version?
Ta'iř sj Ořit
@Radvendii
Oct 13 2016 15:24 UTC
also, is it possible to disable auto-updating?
Eoin Houlihan
@houli
Oct 13 2016 15:29 UTC
Spacemacs doesn't auto update. You'll be prompted sure but you have to explicitly say you want to update
Eivind Fonn
@TheBB
Oct 13 2016 15:33 UTC
You may have to patch Spacemacs a bit to make it work like you want to.
That's what I had to do for Arch anyway.
Ta'iř sj Ořit
@Radvendii
Oct 13 2016 15:36 UTC
I think I want it to not even allow updating from within the application
(ideally)
Nipun Arora
@nipunarora
Oct 13 2016 15:44 UTC
I had a query, for an odd behaviour I have observed in my spacemacs.... my text keeps going to the next line after a certain width has been reached, while I am typing. I haven't changed or set any special setting that I know of
I would like to go back to the default behavior of line wrapping at the end of the window
any suggestions?
Ta'iř sj Ořit
@Radvendii
Oct 13 2016 15:47 UTC
@nipunarora I've had this issue before and it's just gone away on it's own after some time
@nipunarora nothing in the SPC t menu seems to affect it (which is where I would expect it to be) including "truncate lines" which is what I would expect it to be called
Eivind Fonn
@TheBB
Oct 13 2016 15:48 UTC
@nipunarora Sounds like auto-fill-mode.
Ta'iř sj Ořit
@Radvendii
Oct 13 2016 15:49 UTC
@nipunarora @TheBB I stand corrected. : P
Alex Coventry
@coventry
Oct 13 2016 16:02 UTC
Spacemacs is showing up in Ubuntu Unity with the "Proof General" icon. Anyone else experiencing this?
Nipun Arora
@nipunarora
Oct 13 2016 16:19 UTC
@TheBB yes it does seem to be the auto-fill-mode.
I disabled it and it worked fine.
somehow it gets activated whenever I start emacs, however it is not there in my .spacemacs
Eivind Fonn
@TheBB
Oct 13 2016 16:20 UTC
In all buffers?
Rudi Grinberg
@rgrinberg
Oct 13 2016 16:25 UTC
does ivy allow you to do multiple selections?
Sam Pillsworth
@samspills
Oct 13 2016 16:47 UTC
This message was deleted
This message was deleted
Sam Pillsworth
@samspills
Oct 13 2016 17:03 UTC
Hey all! Can I ask for some help to figure out how to fix my indenting inside of parentheses here, or is that better asked somewhere else? (Also, sorry about previous deleted attempts, I tried to include example behaviour and failed at code formatting)
Rey Wright
@reywright
Oct 13 2016 17:42 UTC
hello. 2 questions. 1, how do I turn on virtual line navigation? The more important question though: so I'm using <Space>sap to grep through my project. Is there anyway to do this and specify the type of file I want to look at?
Jim Deville
@jredville
Oct 13 2016 17:46 UTC
is there a way to make emacs use a separate jump list per buffer?
correction… per frame
Jake Romer
@jmromer
Oct 13 2016 17:52 UTC
all of a sudden terminal spacemacs really doesn’t play well with tmux for me — rendering is slower than usual. anyone else seeing that? (I should probably just transition away from tmux, I imagine)
(by “rendering is slower than usual” I mean I’m seeing duplicated lines as I scroll)
Maximilian Wolff
@smile13241324
Oct 13 2016 18:19 UTC
@deb0ch Hi, do you have a minute? I have now the ycmd layer running and it works quite fine. However I have noticed some strange side effects with flycheck now. It seems that the validation is only done when I save the file. When I only have company-mode with clang-backend running flycheck validates my input all the time. Has anyone seen this before?
Maximilian Wolff
@smile13241324
Oct 13 2016 18:47 UTC
Have now tried to start ycmd using the python example... looks like the server is not working as expected, strange that I have received completions though without doc string
skgbanga
@skgbanga
Oct 13 2016 18:54 UTC
just curious if anyone else noticed that solarized-dark doesn't look like what is shown over here: http://themegallery.robdor.com/
Ta'iř sj Ořit
@Radvendii
Oct 13 2016 18:59 UTC
it looks like that for me
i haven't updated in a while though
maybe this was a recent change?
Jim Deville
@jredville
Oct 13 2016 19:00 UTC
is it blue @skgbanga
Maximilian Wolff
@smile13241324
Oct 13 2016 19:08 UTC
@d12frosted I'd like to help with the autumnal cleanup could you send me 5 issues please?
Ta'iř sj Ořit
@Radvendii
Oct 13 2016 19:27 UTC
I'm interested in helping, but what are we supposed to do with the issues we're sent? Are we expected to solve them?
Maximilian Wolff
@smile13241324
Oct 13 2016 19:46 UTC
Has anyone some advice as how to troubleshoot ycmd server? I have build it as requested with external llvm however when i invoke example_client.py it fails due to a server start timeout. When I run it wirh the ycmd layer I see sometimes error message of the sort "Request error Error error while connecting to http://myip/completions" Followed by "skip ycmd completion response" or "No completions found; errors in the file?". However company-diag reports that the ycmd backend is active and I see completions though no doc string. Can anyone confirm that these messages are normal or are they a sign that the server is not correctly build?
Maximilian Wolff
@smile13241324
Oct 13 2016 20:00 UTC
Puhh so ycmd seems to run now correctly as company-diag shows the ycmd layer as only active one and I am receiving completions. However the issue with flycheck and the missing doc strings still persists. Can someone with more exo
ups experience give me a hint of whether th flycheck behaviour is norm
normal ... sorry for this many posts should not use the gitter app when writting longer texts :)
Rudi Grinberg
@rgrinberg
Oct 13 2016 20:05 UTC
is there a way to the equivalent of /query/e+1 in evil?
David Micheal
@dvd_00_twitter
Oct 13 2016 20:18 UTC
I want spacemacs to use powershell instead of cmd in Windows 10...How can I do that?
Luke Orland
@lukeorland
Oct 13 2016 20:21 UTC
@d12frosted can you send me 10 issues pls?
Ta'iř sj Ořit
@Radvendii
Oct 13 2016 21:17 UTC
is it possible to separate the spacemacs git repository (usually in the form of .emacs.d) from the temporary/user specific folders (e.g. .emacs.d/elpa, .emacs.d/.cache, etc.) as in, I want to specify (setq spacemacs-start-directory "/system/path/stored/spacemacs") but still have the temporary/user specific folders be kept in $HOME/.emacs.d
as though spacemacs were it's own system-installed application with configuration in a user's home directory as opposed to just a bunch of configuration files for the system-installed emacs
Eivind Fonn
@TheBB
Oct 13 2016 21:18 UTC
Yeah it's possible, with some patching.
Ta'iř sj Ořit
@Radvendii
Oct 13 2016 21:19 UTC
I'm nervous about doing patching, because then it'll be a pain to upkeep with new versions of spacemacs. Is that the only way?
Eivind Fonn
@TheBB
Oct 13 2016 21:20 UTC
Spacemacs doesn't support this kind of MO out of the box, but I don't think the diff should be too big, and it doesn't touch parts of the code that change too often.
Travis B. Hartwell
@travisbhartwell
Oct 13 2016 21:24 UTC
So I think I'm going to try if I can integrate Emacspeak in Spacemacs
mfulz
@mfulz
Oct 13 2016 23:01 UTC
ah here is the chat ^^
was always trying freenode irc ...
Steven Nguyen
@sdn90
Oct 13 2016 23:13 UTC
is there a way to disable the trashcan sound when updating packages on osx?
David Micheal
@dvd_00_twitter
Oct 13 2016 23:34 UTC
Just got spacemacs 0.200 - I dont see the bookmarks , projects and recents list anymore
please help me
Juan Caicedo
@JuanCaicedo
Oct 13 2016 23:45 UTC
Hi everyone, is there a way to add node to my path only within spacemacs? I’m using nvm, so I don’t want to have node in my path through my .profile, but I would like to add it when I run spacemacs. Currently I’m seeing an error
Suspicious state from syntax checker elm: Flycheck checker elm returned non-zero exit code 127, but its output contained no errors: env: node: No such file or directory
Juan Caicedo
@JuanCaicedo
Oct 13 2016 23:51 UTC

I found a fix which was to add

nvm use stable --silent

to my .zshrc, but if possible I would like an emacs solution :)