2015-06-16 37 views
8

我只用了几天的emacs。现在我想使用emacs绘制ascii图片,我搜索了艺术家模式可以做到的。但是我不知道如何在无gui环境中使用这种模式。Emacs艺术家模式(无gui)

+1

你试过'M-X描述-mode'(或' M')在'艺术家mode'什么时候? – npostavs

+0

我知道一些艺术家模式命令,例如C-c C-a P是多义线,当我输入这个命令时,emacs状态行改变为“Picture:right Artist/s-poly Server”。但是我不知道如何制作一个配置线 –

+0

linux x-window,我可以用鼠标绘制。但我经常使用ssh来服务器工作,这不是gui。 –

回答

8

要绘制聚线,C-c C-a P进入聚行模式,RETartist-key-set-point)来启动线路,移动与正常运动点命令,然后再次打RET结束段并启动一个新的,C-u RET为最后的部分。

artist-mode文档字符串:

Drawing with keys 

RET  Does one of the following: 
     For lines/rectangles/squares: sets the first/second endpoint 
     For poly-lines: sets a point (use C-u RET to set last point) 
     When erase characters: toggles erasing 
     When cutting/copying: Sets first/last endpoint of rect/square 
     When pasting: Pastes 

C-c C-a C-o Selects what to draw 

Move around with C-n, C-p, C-f and C-b. 

C-c C-a C-f Sets the character to use when filling 
C-c C-a C-l Sets the character to use when drawing 
C-c C-a C-e Sets the character to use when erasing 
C-c C-a C-r Toggles rubber-banding 
C-c C-a C-t Toggles trimming of line-endings 
C-c C-a C-s Toggles borders on drawn shapes 


Arrows 

<  Sets/unsets an arrow at the beginning 
     of the line/poly-line 

>  Sets/unsets an arrow at the end 
     of the line/poly-line 
1

我找到一种方法,当ssh到服务器时,用鼠标获得艺术家模式的工作。

步: 1.artist模式 2.xterm鼠标模式(确认您的Emacs打开此模式) 3.some绘制命令,然后用鼠标画出

任何一个知道如何才能使用没有鼠标的键盘可以告诉我。