I recently needed to start using another mac for work and I wanted to duplicate my spacemacs settings onto my new computer. I simply copied all files located in .emacs onto my new computer, and it seems to be working smoothly (I probably got lucky). There's just one small problem: on my old computer, ctrl-BACKSPACE removes whitespace to the point of the next indentation. For example, in json:
{
"name": "David",
"job": "",
}
Typing ctrl-BACKSPACE when the cursor is in front of "job" will result in the following (desired)
{
"name": "David",
"job": "",
}
But on my new computer (same OS), it results in the following:
{
"name": ""job": "",
}
So it looks like a whole line is being deleted.
Is there an easy fix to make sure the indentation is respected?
I believe the indentation settings are determined by flycheck. I can give my .init file if it will be helpful.
On the working computer, ctrl-backspace is bound to the following:
<C-backspace> runs the command clean-aindent--bsunindent (found in
clean-aindent-mode--keymap), which is an interactive compiled Lisp function in
‘clean-aindent-mode.el’.
It is bound to <C-backspace>, M-DEL.
(clean-aindent--bsunindent ARG)
Unindents.
Bound to ‘M-backspace’ key. Searches lines backward, finds the one that
is indented less than the current one. Unindents current line to
align with that smaller indentation
[back]
On the new computer, ctr-backspace is bound to the following:
<C-backspace> runs the command backward-kill-word (found in global-map), which
is an interactive compiled Lisp function in ‘simple.el’.
It is bound to <C-backspace>, M-DEL.
(backward-kill-word ARG)
Probably introduced at or before Emacs version 22.1.
Kill characters backward until encountering the beginning of a word.
With argument ARG, do this that many times.
[back]