Coder Social home page Coder Social logo

indent-guide's Introduction

indent-guide.el

インデントを縦線で表示

show vertical lines to guide indentation

Screencast

Current block only

screencast.gif

All blocks

screencast2.gif

Usage

Require this script

(require 'indent-guide)

and call command M-x indent-guide-mode.

If you want to enable indent-guide-mode in all buffers, call function indent-guide-global-mode.

(indent-guide-global-mode)

Configuration

Column lines are propertized with indent-guide-face. So you may configure this face to make lines more pretty in your colorscheme.

(set-face-background 'indent-guide-face "dimgray")

If you want indent-guide to show guide lines only in idle-time, you can set delay.

(setq indent-guide-delay 0.1)

You may also change the character for guides.

(setq indent-guide-char ":")

NOT RECOMMENDED: To show not only one guide line but all guide lines recursively, set indent-guide-recursive non-nil.

(setq indent-guide-recursive t)

indent-guide-recursive seems buggy and laggy, so I recommend highlight-indent-guide for the purpose.

Comparisons with highlight-indentation

  • look and feel
  • better block detection in LISP-like languages
    (foo                  (foo
    |(foobar baz          |(foobar baz
    ||       (foobar      |   |   |(foobar
    ||       |(qux))))    |   |   | (qux))))
        

    :

       indent-guide     highlight-indentation
        
  • supports TABs
  • worse in performance, especially when you open a file that includes very large, deep blocks

Known Limitations

does not work perfectly with following modes (commands) :

  • company-mode, auto-complete-mode, popup.el (tooltips may not rendered perfectly)
  • pager.el (guide lines are not rendered immediately, after pager-up/down)

contributions are welcome !

indent-guide's People

Contributors

dineshbhosale avatar djui avatar fuco1 avatar k-nara avatar kljohann avatar purcell avatar youngfrog avatar zk-phi avatar zk-phi-test avatar zonuexe avatar

Watchers

 avatar

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.