Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can emacs longlines-mode or visual-line-mode be made to respect indentation and lists?

Tags:

emacs

I use emacs to edit most of my answers for SO, and although I use longlines-mode (I have not upgraded to emacs 23 because of some critical bugs that don't look like being fixed any time soon), I can't find a way to get longlines-mode to respect the indentation used for Markdown. I would really like to fix this, but I want it for an ordinary buffer, not for org-mode (as already answered).

Does anybody have suggestions on how I can get longlines-mode to indent wrapped lines? I am definitely willing to try hacking the Emacs Lisp, although my Emacs Lisp is pretty rusty...

like image 854
Norman Ramsey Avatar asked Dec 31 '09 00:12

Norman Ramsey


1 Answers

I just looked through the source code of longlines.el. There doesn't seem to be any hook there to have the wrapped lines indented. If you want to do this, you'll need to write a bit of elisp (and, more importantly, understand all of the functions for doing text-properties.)

like image 163
vy32 Avatar answered Oct 10 '22 12:10

vy32