开发者

How do I get Aquamacs/Emacs to show a right margin indicator?

开发者 https://www.devze.com 2023-02-03 16:54 出处:网络
After living with Java IDE\'s for quite some time now, I\'m back into the worl开发者_JS百科d of C++ development.And I\'ve returned to my editor of choice: Emacs (actually, most of the time I\'m in Aqu

After living with Java IDE's for quite some time now, I'm back into the worl开发者_JS百科d of C++ development. And I've returned to my editor of choice: Emacs (actually, most of the time I'm in Aquamacs on the Mac, but I do occasionally use Emacs when I'm on a Linux box).

Strangely, the thing I find myself missing most is a right margin indicator. I find myself using M-x 3 a lot to put code up side by side. Knowing exactly where I've set the margin would help me keep things clean and neat.

Is there any hope of setting up Aquamacs to show a right margin indicator? Or something that would have a similar effect? How about Emacs with X support?


You can use the column-marker library to set column markers with specific faces.


using C-u 80 # I can quickly insert # 80 times to separate chunks of code.

this also acts as visual guide so I don't go above 80 characters on single line, a common coding convention (perhaps same as your reason)



C-u followed by a number and then a command, repeats the command the given number of times

eg, C-u 10 C-n will move cursor 10 lines down

0

精彩评论

暂无评论...
验证码 换一张
取 消