A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
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?
@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.
C-x C-f
to your custom function
SPC f f
or C-x C-f
to that
SPC f f
working now?
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
(define-key global-map (kbd "C-x C-f") 'helm-find-files)
So you are using emacs editing style then?
Yes, i prefer that than vim style
M-:
then insert that line end press enter
user-config
section of your dotfile (and reload with M-m f e R
)
Or better, place it in the
user-config
section of your dotfile (and reload withM-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?
Yes there is
helm-current-directory
with buffer-file-name