Giter Site home page Giter Site logo

amintimany / column-enforce-mode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jordonbiondo/column-enforce-mode

0.0 3.0 0.0 17 KB

Highlight text that extends beyond a certain column. Can be used to enforce 80 column rule (well more like suggest, not enforce)

Emacs Lisp 100.00%

column-enforce-mode's Introduction

column-enforce-mode

Highlight text that extends beyond a certain column.

This mode is meant to be a very lightweight, zero configuration, way to help enforce the 80 column rule. It can be configured for any N-column rule however.

What it looks like enforcing the 80 column rule:

http://i.imgur.com/EezaOo9.png

Usage

Start it up interactively on the current buffer,

default startup:
M-x: column-enforce-mode 

or by specific rule function
M-x: 80-column-rule

or with a prefix arg specifying the column limit
C-u 90 M-x column-enforce-n

or tie it to a major mode:

(add-hook 'c-mode-hook 'column-enforce-mode)

tie it to all source code modes:

(add-hook 'prog-mode-hook 'column-enforce-mode)

or enable globally

(global-column-enforce-mode t)

Allowing long comments

By default column-enforce-mode will mark comments that exceed the limit. You can allow long comments in your code with:

(setq column-enforce-comments nil)

Customizing the column

(setq column-enforce-column <your desired column>)

Customizing the look

Customize `column-enforce-face’ to change the look of the mode

column-enforce-mode's People

Contributors

jordonbiondo avatar purcell avatar

Watchers

James Cloos avatar Amin Timany avatar  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.