emacsorphanage / helm-swoop

Efficiently hopping squeezed lines powered by Emacs helm interface
GNU General Public License v3.0
689 stars 55 forks source link

indent-buffer in helm-swoop.el #152

Closed conao3 closed 5 years ago

conao3 commented 5 years ago

Just do indent-buffer in helm-swoop.el

cireu commented 5 years ago

Good, would you like to write a indentation script for helm-swoop? we can add it to git hooks.

Personally I use common-lisp-indent-function because it can indent cl-flet to

(cl-flet ((a-simple-function ()
            (do-something-here)))
  ...)

but not

(cl-flet ((a-simple-function ()
                             (do-something-here)))
  ugly!)

If you can add such script will be helpful to keep the code consistency!

conao3 commented 5 years ago

Good, but how automatically install git hook when anyone clones this repository? I know, githook is completely local script. So this issue solve just you place some script in your local repository .git folder.

cireu commented 5 years ago

You can create a new folder dev/git-hooks, and put your script into it. And we add some instruction (e.g. CONTRIBUTION.org)

conao3 commented 5 years ago

OK. I create it in another PR.