Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 09:29
    agustink starred syl20bnr/spacemacs
  • 06:10
    sunlin7 commented #15829
  • Dec 01 22:50
    SpacemacsBot synchronize #15840
  • Dec 01 22:50

    smile13241324 on develop

    core/core-dotspacemacs.el: spee… (compare)

  • Dec 01 22:50
    smile13241324 closed #15828
  • Dec 01 22:45
    SpacemacsBot synchronize #15840
  • Dec 01 22:45
    smile13241324 closed #15829
  • Dec 01 22:45
    smile13241324 commented #15829
  • Dec 01 22:45

    smile13241324 on develop

    core/core-load-path.el: auto lo… (compare)

  • Dec 01 22:26
    SpacemacsBot opened #15840
  • Dec 01 22:25

    smile13241324 on develop

    add binding for all the awesome… (compare)

  • Dec 01 22:25
    smile13241324 closed #15836
  • Dec 01 19:22
    bridgesense closed #15839
  • Dec 01 19:22
    bridgesense commented #15839
  • Dec 01 13:14
    github-actions[bot] labeled #15173
  • Dec 01 13:14
    github-actions[bot] commented #15173
  • Dec 01 12:04
    abgruszecki commented #15309
  • Dec 01 08:50
    github-actions[bot] closed #14953
  • Dec 01 05:32
    thewhitewolfgamer starred syl20bnr/spacemacs
  • Dec 01 04:48
    unraised starred syl20bnr/spacemacs
Daniel Nicolai
@dalanicolai
inside that function
Ah what I am saying is wrong
Momo10101
@Momo10101
ohh ok, pity
Daniel Nicolai
@dalanicolai
Ah no
It is still very easy
even easier
If you know what to do
So I am finding that out
Momo10101
@Momo10101
Perfect, thanks a lot! : )
Daniel Nicolai
@dalanicolai
You just place (file-name-nondirectory buffer-file-name) as second argument behind helm-find-files-1
in that function
The only thing is, helms behavior is a little weird... it places the cursor on the correct filename as long as you did not make any changes. Otherwise it places it on the temporary filename.
Momo10101
@Momo10101

You just place (file-name-nondirectory buffer-file-name) as second argument behind helm-find-files-1

In which file do i need to do this?

Daniel Nicolai
@dalanicolai
Ah okay... I see helm-find-files puts a "^" in front of the file

You just place (file-name-nondirectory buffer-file-name) as second argument behind helm-find-files-1

In which file do i need to do this?

Copy the spacemacs/helm-find-files to your user-config and do it there

But put this in that file (concat "^" (file-name-nondirectory buffer-file-name))
But then I really recommend you to read some chapters of https://www.gnu.org/software/emacs/manual/eintr.html
And take a vim tutorial if you are open to try it
It will take some time for you to learn using Spacemacs... but you made the best choice!
Daniel Nicolai
@dalanicolai
(depending on what you want to use it for. There are better 'specialized' editors, but there is no better 'general' editor, and for sure not as elegant and fun...)
Momo10101
@Momo10101
sorry, i am a bit slow to go through all this information : )
where do i find the 'helm-find-files-1' function ?
in the .emacs.d folder? I did a grep and it does not seem to be there
Daniel Nicolai
@dalanicolai
It is the last expression in the spacemacs/helm-find-files function
Momo10101
@Momo10101
ohh i see!
Daniel Nicolai
@dalanicolai
You type C-h f then space find file
Ah okay
so place the snippet behind input
Momo10101
@Momo10101

But then I really recommend you to read some chapters of https://www.gnu.org/software/emacs/manual/eintr.html

Yes, i will read it! Thanks! I am stuck at a basic emacs level because i dont know elisp. Its been on my todo list for too long now

Daniel Nicolai
@dalanicolai
My last line looks like this: (helm-find-files-1 input (concat "^" (file-name-nondirectory buffer-file-name)))))

(depending on what you want to use it for. There are better 'specialized' editors, but there is no better 'general' editor, and for sure not as elegant and fun...)

For example, try to do what you are asking now in any other editor... I think, genrally, it will by far not be this easy

But then I really recommend you to read some chapters of https://www.gnu.org/software/emacs/manual/eintr.html

Yes, i will read it! Thanks! I am stuck at a basic emacs level because i dont know elisp. Its been on my todo list for too long now

Just a few chapters will get you a long way (like 1 or two hours read, until you get the feeling that you understand the basics)

Maybe it takes less time (or more)... I don't remember
Momo10101
@Momo10101

My last line looks like this: (helm-find-files-1 input (concat "^" (file-name-nondirectory buffer-file-name)))))

Nice, its working now. Thanks a lot! That should be the standard behavior imho : )

Daniel Nicolai
@dalanicolai
Well... in Spacemacs everybody can have his own opinion
:thumbsup:
Momo10101
@Momo10101

Maybe it takes less time (or more)... I don't remember

Ok cool, i already have programming experience so hopefully it will be an easy read

Daniel Nicolai
@dalanicolai
Lisp is only a little strange, but not much more difficult than e.g. python
Momo10101
@Momo10101
One last thing that annoys me about spacemacs, the undo is not like vanilla emacs. In emacs there are infinite undos. Is there a way to get that in spacemacs?
Daniel Nicolai
@dalanicolai
Well in Spacemacs undo's are also infinite
But you can choose amongst different undo systems
However, I have never read about it
You can probably find explanations easily on the web
(But probably mostly about vim/evil style editing)
Momo10101
@Momo10101
Really? It doesnt behave the same as in emacs. In spacemacs sometimes i cant get back to a certain point by undoing. For example if i write something, undo, write something, then undo can go back to the initial state
Ok, i will have a look online for the different undo behaviors
Daniel Nicolai
@dalanicolai
Well it is Emacs so it can behave like Emacs... but I don't know how it is configured in Spacemacs
Momo10101
@Momo10101
ok
Daniel Nicolai
@dalanicolai
Yeah... good luck. Enjoy!
Momo10101
@Momo10101
I meant to say vanilla emacs