Fork me on GitHub
#emacs
<
2016-04-22
>
danielgrosse10:04:11

Again a question for beginner. simple_smile I have a configuration file called shell.el in my .emacs.d folder. When I now run M-x shell the error Autoloading failed to define function shell is thrown. Even if its empty. Can someone explain me how I can use the file to change some behaviours of the shell. E.g. Match the optics to the shell in iTerm.

benedek12:04:12

any idea how can i stash a chunk or a file in magit from the status buffer?

dpsutton12:04:10

i think its z

dpsutton12:04:18

but just press ? to show the options

mcgivernsa13:04:26

you can put the changes you don't want to stash in the index, then do z -k z

malabarba13:04:56

@danielgrosse: avoid naming your configuration files with the same name as actual features. That can shadow the load path.

malabarba13:04:18

Call it something like shell-config.el instead

danielgrosse13:04:25

@malabarba: thank you. Just renamed it and it works

malabarba13:04:08

And it sounds like you've added your .emacs.d directory to the load path.

malabarba13:04:32

Don't do that either, 😉

benedek15:04:10

@dpsutton: @mcgivernsa thx. I mean just stashing a chunk/file not all current changes

benedek15:04:58

what you have for staging with use s on a certain file or chunk

mcgivernsa15:04:07

so what I described is like the inverse - it will stash everything but the staging area

benedek15:04:46

ah i see. right. not exactly what i wanted but deffo a solution. ta