Emacs 显示行号和更改背景颜色工具
直接安装 apt install emacs网站
Emacs 显示行号插件
Emacs须要第三方插件显示行号
1 下载 linum.el。在网上搜一下,许多网站都提供下载。
2 复制 linum.el 到“/usr/share/emacs/site-lisp/”code
3 配置 ~/.emacs 。若是主目录下,没有这个文件,须要新建。
(setq column-number-mode t)
(setq line-number-mode t)
(global-linum-mode t) emacs
--------------------------------------------------------------------------------------
4 或者在Emacs下执行 M-x linum-mode 来显示或者取消行号
M-x : Alt + x
输入: linum-modeit
Emacs更改背景颜色io
Emacs的配置文件在~/.emacs。如今就用Emacs打开这个文件吧,若是没有就建立一个。首先改一下颜色配置,让Emacs看起来更酷一些:
(set-background-color "#CCE8CF") ;; 使用苹果绿背景
(set-foreground-color "black") ;; 使用黑色前景
(set-face-foreground 'region "green") ;; 区域前景颜色设为绿色
(set-face-background 'region "blue") ;; 区域背景色设为蓝色配置
------------------------------file
尽管能够重启Emacs使配置生效,但更快捷的方式是在打开~/.emacs的时候执行命令M-x eval-buffer,就能够使配置文件当即生效。select
------------------------------
在emacs下,若是文件是用root权限创建的,在编辑内容的时候,不用输入中文。切换到中文状态下,也是输入的英文。全部者改变一下,就能够了,不知道是为何??????????
全屏效果
--------------------
直接按F11
--------------------------------------------------------------------------------------------------------------------------------------------
;;设置窗口位置为屏库左上角(0,0)
(
set
-frame-position (selected-frame) 0 0)
;;设置宽和高, 1920,1080
;;分辨率的宽和高
(
set
-frame-width (selected-frame) 1920)
(
set
-frame-height (selected-frame) 1080)
隐藏工具栏
Add the following to your init file (~/.emacs ):
(tool-bar-mode -1)