GithubHelp home page GithubHelp logo

clean-aindent-mode's People

Contributors

justbur avatar karthiknayak avatar pmarinov avatar ryantm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

clean-aindent-mode's Issues

M-backspace does not effectively delete words in ansi-term

Description :octocat:

M-backspace visually delete a word in ansi-term but when Enter is pressed the deleted word is still part of the command.

Reproduction guide ๐Ÿชฒ

  • Start Emacs
  • M-x ansi-term
  • Type "ls"
  • Delete it using M-backspace
  • press Enter

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

interaction with subword-mode

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

Not available in MELPA.

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.

Getting `newline: Buffer is read-only: #<buffer ...>` when using clean-aindent

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:

  • Load clean-aindend (M-x load-library clean-aindent)
  • Open a directory ($ emacsclient $HOME)
  • If you press enter in any of the files to open it, emacs will raise an error:
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!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.