pmarinov / clean-aindent-mode Goto Github PK
View Code? Open in Web Editor NEWEmacs extension for simple indent and unindent
License: Other
Emacs extension for simple indent and unindent
License: Other
When I move the arrow key down, the whitespace is not cleaned. I use vanilla Emacs.
M-backspace visually delete a word in ansi-term but when Enter is pressed the deleted word is still part of the command.
Observed behaviour: ๐ ๐
The "ls" command is performed even it had been deleted
Expected behaviour: โค๏ธ ๐
The "ls" command should not be performed.
The problem is that M-backspace is overriden by clean-aindent-mode and set to (clean-aindent--bsunindent ARG)
Maybe clean-aindent should always be disabled when being in term-mode ?
PS: The issue was originally opened here: syl20bnr/spacemacs#9564
Hi,
great mode :)
However I have a minor issue when using it in combination with subword-mode
M-DEL should delete the previous subword. Yet clean-aindent-mode overwrites this behavior and executes kill-word (if not in indent space).
I'm currently using this hack, but maybe there is a cleaner solution
-(kill-word (- arg)) ;; Original "C-backspace" key function
+(if subword-mode
+ (subword-kill (- arg))
+ (kill-word (- arg))) ;; Original "C-backspace" key function
This code is not available in MELPA. To get it into MELPA, we need to write a MELPA recipe and submit it as a pull request.
I looked at the code and noticed some issues that might block MELPA acceptance. Some functions are prefixed by bsunindent
. It looks like this package should be named clean-aindent
, which should be the prefix for all of the definitions.
First of all, thanks a lot for clean-aindent, i have been hoping to be able to configure emacs to do this for years (so, so, so tired of whitespace...) :)
Steps to reproduce:
M-x load-library clean-aindent
)$ emacsclient $HOME
)newline: Buffer is read-only: #<buffer gaizka>
No matter if I then do M-x clean-aindent-done
, and open a new buffer with emacsclient $HOME
, i still cannot any file there.
Same thing happens with other temporary buffers, like GTAGS search buffers...
Do you know how this can be solved?
Thanks a lot for your help!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.