Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 03:02
    tvenissat starred syl20bnr/spacemacs
  • 01:30
    KveinAxel starred syl20bnr/spacemacs
  • 00:21
    redbeardt starred syl20bnr/spacemacs
  • Jul 04 22:31
    BenedictHW synchronize #15634
  • Jul 04 22:31
    BenedictHW synchronize #15631
  • Jul 04 22:22
    BenedictHW synchronize #15631
  • Jul 04 22:21
    BenedictHW synchronize #15631
  • Jul 04 22:02
    BenedictHW synchronize #15631
  • Jul 04 20:15
    emacs18 commented on 42b6ff3
  • Jul 04 20:10
    emacs18 opened #15635
  • Jul 04 19:38
    gabrielfernandesctba starred syl20bnr/spacemacs
  • Jul 04 19:03
    ninja-1337 starred syl20bnr/spacemacs
  • Jul 04 16:52
    Robitx starred syl20bnr/spacemacs
  • Jul 04 16:16
    BenedictHW opened #15634
  • Jul 04 16:15
    BenedictHW synchronize #15631
  • Jul 04 16:14
    BenedictHW synchronize #15631
  • Jul 04 16:09
    stellarskylark edited #15633
  • Jul 04 16:08
    stellarskylark opened #15633
  • Jul 04 15:48
    BenedictHW synchronize #15631
  • Jul 04 15:46
    BenedictHW synchronize #15632
Roberto Previdi
@hariseldon78
i'm using the typescript layer
Nathan
@nspaeth
Hello. I'd like to remap M-backspace by default will only kill subwords, ex: part in multi-part when run at the end of the word. I would like it to work for the whole word. I have been using (global-set-key (kbd "C-M-<backspace>") 'backward-kill-sexp). I considered just swapping the two keybindings, but I'd like to make sure that the new keybinding will do all of the whitespace cleanup as well. How can I ensure that backward-kill-sexp does the other tasks that clean-aindent-mode does?
Andrew Sanchez
@andrewsanchez

@iftheshoefritz asked this question a long time ago:

I added a point to an existing document using an org capture template. Everything works as I expect, except the point added is highlighted in orange and I don't know what that means:

I'm wondering if @iftheshoefritz figured it out, or if anybody else knows the answer. I couldn't find any variables that seemed to control this.

1 reply
spacemacs capture.png
Momo10101
@Momo10101
Hi all, does anyone know how to have the cursor be on the current open file when doing C-x-f in spacemacs ?
I would prefer that than having the file cursor be at the top of the folder
Daniel Nicolai
@dalanicolai
@Momo10101 But you do not use SPC f f? This is Spacemacs after all
To get what you prefer you can easily rebind C-x C-f to your custom function
Momo10101
@Momo10101
sorry, i am a spacemacs noob : )
How do i do SPC f f ?
if i do that, i literally get a space and two f's : )
Daniel Nicolai
@dalanicolai
Ah probably your Spacemacs does not load correctly then
Momo10101
@Momo10101
ok strange, its a clean install of spacemacs on Ubuntu
Daniel Nicolai
@dalanicolai
You did not change the .spacemacs file?
Momo10101
@Momo10101
no, but let me try to do it from scratch again
in any case, do you know what i would have to rebind C-x-f to get the behavior i want? I want it to be 'helm find files', but i just want the cursor to point at the current open file
Daniel Nicolai
@dalanicolai
Well, it is not as straightforward as I thought.
I thought let's make the filename the initial input, but then the other files and dirs are not listed
Luckily it should be easily possible in helm emacs-helm/helm#1014
Daniel Nicolai
@dalanicolai
Ah that does something different
oops
Momo10101
@Momo10101
ok
its strange because the default behavior for 'helm find files' is for the cursor to point at the current open file
a least when i use it in vanilla emacs
Daniel Nicolai
@dalanicolai

its strange because the default behavior for 'helm find files' is for the cursor to point at the current open file

Yes I just dicovered that now

So then just rebind SPC f f or C-x C-f to that
Is SPC f f working now?
Momo10101
@Momo10101
'C-x C-f' is already bound to 'helm find file' as default in spacemacs
Daniel Nicolai
@dalanicolai
Okay, maybe then you are not in a file-buffer
Momo10101
@Momo10101
No, i havent tried yet, but 'SPC f f' is vim mode?

Okay, maybe then you are not in a file-buffer

I should be, i have a file open in spacemacs then i do C-x C-f, spacemacs opens the directory where the file is in, but the cursor is at the top instead of at the current file

Daniel Nicolai
@dalanicolai
Yes I see it is bound to spacemacs/helm-find-file, not helm-find-files
(define-key global-map (kbd "C-x C-f") 'helm-find-files)
Evaluate that line to rebind it
So you are using emacs editing style then?
Momo10101
@Momo10101

Evaluate that line to rebind it

Sorry, how do i do that?

So you are using emacs editing style then?

Yes, i prefer that than vim style

Daniel Nicolai
@dalanicolai
Okay... have you tried vim style? Using SPC is very convenient
But whatever you prefer of course
You can press M-: then insert that line end press enter
Or better, place it in the user-config section of your dotfile (and reload with M-m f e R)
Momo10101
@Momo10101

Okay... have you tried vim style? Using SPC is very convenient

Yes, i will give it a try, I didnt know that, that is the recommended way to use spacemacs

Or better, place it in the user-config section of your dotfile (and reload with M-m f e R)

Thanks a lot! that did the trick!

Is there not a way to get the spacemacs/helm-find-file to do the same?
Daniel Nicolai
@dalanicolai
Well emacs style works fine too... but generally Spacemacs users prefer vim-style and Spacemacs is designed for that

Is there not a way to get the spacemacs/helm-find-file to do the same?

Yes there is

If you look at the definition of the function you will see that that function explicitly preselects the directory instead of the file, which makes sense also...
So you can copy that function to your user init, and replace helm-current-directory with buffer-file-name
inside that function
Daniel Nicolai
@dalanicolai
Ah what I am saying is wrong