antonj / highlight-indentation-for-emacs Goto Github PK
View Code? Open in Web Editor NEWMinor modes to highlight indentation guides in emacs.
Minor modes to highlight indentation guides in emacs.
With pixel-scroll-precision-mode
active on emacs-git, the plugin stops updating and doesn't show indentation guides as you scroll up or down the page.
Disabling pixel-scroll-precision-mode
restores the functionality of this plugin.
Please add documentation how to use(setup) Highlight-Indentation-for-Emacs in use-package.
Thanks
The following line is highlighted throughout, but should only be at the beginning of the line (^ {4}...
vs {4}...
).
def foo:
| if test == "| bar| ":
| | print "baz"
| else:
| | exit(1)
Using auto-complete-mode
with indent-guide-mode
can produce artifacts on the end of the file, here is the minimum configuration to reproduce the problem:
(auto-complete-mode)
(indent-guide-mode)
(setq ac-auto-show-menu nil
ac-auto-start 2)
To reproduce the problem:
Go to the end of any file, type two letters to trigger the auto-complete, the menu will be created and then hid, the result are ac-menu-height
artifacts left behind.
I'm using emacs 24.4
This project is heavily used and needs maintenance. It needs someone who can maintain it actively and accept pull requests.
It should be removed IMHO or a least needs a option to avoid it.
Thanks!
Can you please add more detail about how to customize color of the guide.
Hello. This is a useful mode, thanks!
Really what I care about are subsequent indents and not highlighting the first column (since that can be implied just being on the line).
It would be nice if I could turn off highlighting for column 0 to make it a little less noisy. Thanks!
highlight-indentation.el:161:1:Warning: the function `derived-mode-class' is not known to be defined.
In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.2) (ubuntu built)
The following code misses highlights in lines before "def"s:
class Foo(object):
def __init__(self):
pass
def __unicode__(self):
pass
The lines are just empty
On screenshot in README.org I see such lines highlighted.
Where is the problem?
Last week I noticed Emacs was very slow while scrolling (holding C-n or C-p) so I started disabling stuff in my .init.el and apparently the cause was highlight-indentation-current-column-mode, it only happened in C mode, I use it in Python mode too and it works perfectly, can anyone confirm this?
It would be great if different levels of indentation could have different faces. the rainbow-delimiters
does something similar for parentheses etc.
could you please create a tag to use this package using melpa stable [1].
Thanks
[1] : http://stable.melpa.org/
Give a look: http://snag.gy/U9AmJ.jpg
This gist has some code to create a vertical bar corresponding to the indentation of the current line
https://gist.github.com/1510432
You're welcome to integrate
The latest version tag (0.7.0, commit cd6d8168) is also currently the latest at Melpa.
That release was made on 2015-03-07. There have been many improvement since then on the master branch.
Please prepare a new release, tag it, and release it to Melpa.
As an example, by default my c-basic-offset
is 4, but in a source file I changed my local variable value to 2 (as a first line comment). But as it turns out, highlight-indentation-mode
is invoked before local variables are evaluated, and it will set offset
to 4. Could you make it respond to local variable changes or suggest a workaround?
Can we have hooks for when the mode turns on? It would allow for some much appreciated extra customization.
First of all, thanks for the project, I really enjoy using it, this made Emacs very easy to use.
On this picture, lines 27 and 28 have indentation shown. IMO it's ugly and pointless (to me at least), but it's a bad idea to have it as default. I also want it to show indentation on the line where the point (e.g. the cursor) is on, because I think it's not ugly and helps to understand where I am and what I tried to do, but that's not mandatory.
Is it possible with this mode?
I know that sorted() function exists in python, that's my home task from university :(
btw, this is an awesome, project, thank you!
I am testing emacs26 and this mode does not work.
It used to work find with emacs 24,25
here is the error message:
call-interactively: Symbol's value as variable is void: py-indent-offset
Hello, i have a two part question:
Thank you.
This produces strange effects when editing code. Characters do not always appear at the cursor position.
With Emacs 24.3 python.el provides 'python, which suggests another cond yet.
I've loaded highlight-indentation.el
to my Emacs environment, however, M-x highlight-indentation-mode
is not available; there is only highlight-indentation-on
and highlight-indentation-off
.
With the latest update from melpa (20150109.1244) I get
Debugger entered--Lisp error: (wrong-type-argument listp inherit)
face-spec-set-match-display(inherit #<frame [email protected] 0x1134848>)
face-spec-choose(((inherit fringe)) #<frame [email protected] 0x1134848>)
face-spec-recalc(highlight-indentation-face #<frame [email protected] 0x1134848>)
I solved this problem by replacing line 31:
'((inherit fringe))
by
'((t :inherit fringe))
Kind regards
Berthold Höllmann
Is it possible to use dot instead of face for indentation guides ? or a character like middle dot ? for example something like this:
class Sample
. def method1
. . puts "hey"
. end
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.