![Rank: 14](http://static.oschina.net/uploads/img/201301/19232247_58cM.gif) ![Rank: 14](http://static.oschina.net/uploads/img/201301/19232248_igzs.gif) ![Rank: 14](http://static.oschina.net/uploads/img/201301/19232248_L9U6.gif) ![Rank: 14](http://static.oschina.net/uploads/img/201301/19232248_L9U6.gif) 积分844帖子221精华7经验538 点威望0 点金币475
|
Emacs使用Lisp语言可以对其进行高度制定,也正是有了lisp,才能有这么多的扩展使用得emacs成为最牛的操作平台
改变emacs的frame大小及位置的方法不止一种,这里给一个用lisp包装的函数,方便大家使用
- (defun arrange-frame (w h x y)
- "Set the width, height, and x/y position of the current frame"
- (let ((frame (selected-frame)))
- (delete-other-windows)
- (set-frame-position frame x y)
- (set-frame-size frame w h)
- )
- )
- (arrange-frame 120 30 100 50)
复制代码
arrange-frame (w h x y) 这人函数的w h x y分别是frame的宽、高、左上角x坐标、左上角y坐标 |
|
算法+语言=内功+招式
{ Standing on Shoulders of Giants }
|
|
|
| |
![Rank: 14](http://static.oschina.net/uploads/img/201301/19232247_58cM.gif) ![Rank: 14](http://static.oschina.net/uploads/img/201301/19232248_igzs.gif) ![Rank: 14](http://static.oschina.net/uploads/img/201301/19232248_L9U6.gif) ![Rank: 14](http://static.oschina.net/uploads/img/201301/19232248_L9U6.gif) 积分844帖子221精华7经验538 点威望0 点金币475
|
简单设置 emacs 窗口大小
- (add-to-list 'default-frame-alist '(width . 120))
- (add-to-list 'default-frame-alist '(height . 35))
复制代码
|
|
算法+语言=内功+招式
{ Standing on Shoulders of Giants }
|
|
|
| |
![Rank: 14](http://static.oschina.net/uploads/img/201301/19232247_58cM.gif) ![Rank: 14](http://static.oschina.net/uploads/img/201301/19232248_igzs.gif) ![Rank: 14](http://static.oschina.net/uploads/img/201301/19232248_L9U6.gif) ![Rank: 14](http://static.oschina.net/uploads/img/201301/19232248_L9U6.gif) 积分844帖子221精华7经验538 点威望0 点金币475
|
再来一种方法
- (if (window-system) (set-frame-width (selected-frame) 120))
- (if (window-system) (set-frame-height (selected-frame) 35))
复制代码
|
|
算法+语言=内功+招式
{ Standing on Shoulders of Giants }
|
|
|
| |
![Rank: 14](http://static.oschina.net/uploads/img/201301/19232247_58cM.gif) ![Rank: 14](http://static.oschina.net/uploads/img/201301/19232248_igzs.gif) ![Rank: 14](http://static.oschina.net/uploads/img/201301/19232248_L9U6.gif) ![Rank: 14](http://static.oschina.net/uploads/img/201301/19232248_L9U6.gif) 积分844帖子221精华7经验538 点威望0 点金币475
|
再来,
- (setq default-frame-alist
- '((height . 35) (width . 120) (menu-bar-lines . 20) (tool-bar-lines . 0)))
复制代码
|
|
算法+语言=内功+招式
{ Standing on Shoulders of Giants }
|
|
|
| |
![Rank: 14](http://static.oschina.net/uploads/img/201301/19232247_58cM.gif) ![Rank: 14](http://static.oschina.net/uploads/img/201301/19232248_igzs.gif) ![Rank: 14](http://static.oschina.net/uploads/img/201301/19232248_L9U6.gif) ![Rank: 14](http://static.oschina.net/uploads/img/201301/19232248_L9U6.gif) 积分844帖子221精华7经验538 点威望0 点金币475
|
x window下,用这个也可以达到同样的效果
~/.Xdefaults 中增加下面这行
|
|
算法+语言=内功+招式
{ Standing on Shoulders of Giants }
|
转载于:https://my.oschina.net/freeblues/blog/103161