2019独角兽企业重金招聘Python工程师标准>>>

  1. Ispell 中文问题

参考 : Ispell 在emacs中常见问题

添加:

;; ispell 中文问题
;; use apsell as ispell backend
(setq-default ispell-program-name "aspell")
;; use American English as ispell default dictionary
(ispell-change-dictionary "american" t)

2. 启用solarized-theme

通过包安装solarized-theme,然后添加:

;;使用 solarized 主题
(require 'solarized)
(provide 'solarized-theme)

3. 高亮当前行

参考:Changing highlight line color in emacs

修改高亮颜色为绿色,护眼。

(global-hl-line-mode 1)
(set-face-background 'hl-line "green")
(set-face-foreground 'highlight nil)

使用hl-line+包,启动时就高亮了一下,后来就没有了。

以下是hl-line+包配置,没用:

(require 'hl-line+)
(global-hl-line-mode nill)
(toggle-hl-line-when-idle 1) ; Highlight only when idle

4.让 emacs 在命令行下支持剪切板共享

参考:让 emacs 在命令行下支持剪切板共享

安装xsel

添加配置信息:

;; http://hugoheden.wordpress.com/2009/03/08/copypaste-with-emacs-in-terminal/
;; I prefer using the "clipboard" selection (the one the
;; typically is used by c-c/c-v) before the primary selection
;; (that uses mouse-select/middle-button-click)
(setq x-select-enable-clipboard t);; If emacs is run in a terminal, the clipboard- functions have no
;; effect. Instead, we use of xsel, see
;; http://www.vergenet.net/~conrad/software/xsel/ -- "a command-line
;; program for getting and setting the contents of the X selection"
(unless window-system(when (getenv "DISPLAY");; Callback for when user cuts(defun xsel-cut-function (text &optional push);; Insert text to temp-buffer, and "send" content to xsel stdin(with-temp-buffer(insert text);; I prefer using the "clipboard" selection (the one the;; typically is used by c-c/c-v) before the primary selection;; (that uses mouse-select/middle-button-click)(call-process-region (point-min) (point-max) "xsel" nil 0 nil "--clipboard" "--input")));; Call back for when user pastes(defun xsel-paste-function();; Find out what is current selection by xsel. If it is different;; from the top of the kill-ring (car kill-ring), then return;; it. Else, nil is returned, so whatever is in the top of the;; kill-ring will be used.(let ((xsel-output (shell-command-to-string "xsel --clipboard --output")))(unless (string= (car kill-ring) xsel-output)xsel-output )));; Attach callbacks to hooks(setq interprogram-cut-function 'xsel-cut-function)(setq interprogram-paste-function 'xsel-paste-function);; Idea from;; http://shreevatsa.wordpress.com/2006/10/22/emacs-copypaste-and-x/;; http://www.mail-archive.com/help-gnu-emacs@gnu.org/msg03577.html))

转载于:https://my.oschina.net/u/191928/blog/663542

emacs+prelude问题配置相关推荐

  1. 在Emacs Prelude配置下安装neotree插件,实现文件导航树

    适用人群: 我们这个插件的添加是Emacs Prelude配置环境下实现的,是针对已经在Emacs下安装了Prelude的用户. Prelude是一个针对emacs的一个配置: Prelude is ...

  2. emacs python环境配置

    python作为日常用语,配置好emacs的开发环境,有效提高日后的开发效率. 几篇老外的文章作为参考: Configing emacs as a python ide python.emacs 安装 ...

  3. Emacs 24.3 配置JDEE(http://blog.csdn.net/csfreebird/article/details/19033939)

    最近要重回Java编程,所以打算在最新版本的Emacs 24.3上配置JDEE,听说会有些问题,特此记录安装过程. Emacs 24.3内置了CEDET, 版本是2.0, 这是一个让人困惑的事情,因为 ...

  4. 神的编辑嚣emacs的简单配置

    一个lisper不用emacs的确説不过去哈! 虽然使用vim很多年,但由于用stumpwm做窗口管理嚣很久,配置使用emacs也不太难.简单从网上搜集整理一些资料就可以正常使用了,现记下以后再完善. ...

  5. 临时设置emacs prelude里tab的大小

    由于平时我比较多使用emacs来看内核代码,所以默认的TAB设置为8.但是,偶尔也会使用emacs来看程序代码.可以这样来做,设置当前的buffer的tab大小. alt + x: set-varia ...

  6. emacs python plugin_Windows上配置Emacs来开发Python及用Python扩展Emacs

    Windows下配置Emacs来开发Python去年在网上偶然的一个机会知道了Emacs的存在,在周围前辈们都在夸赞Sublime好用的时候,喜欢跟大众唱反调的我,突然觉得如果能用Emacs来编代码, ...

  7. Emacs之LaTeX环境配置及效果展示

    Emacs的相关配置为: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 ;; =============== ...

  8. emacs c语言配置文件,Emacs配置及使用方法(转)--- 很经典的

    最近需要用Emacs编辑C程序,看到这个教程非常不错,故转载 在Emacs下用C/C++编程 参考文献: hhuu @ newsmth 的<Emacs的日常生活> emacs 的文档 em ...

  9. emacs 常用命令与配置

    原文地址:http://www.cnblogs.com/UnGeek/archive/2013/04/28/3049448.html 1. 为了用得顺手,需要把Caps Lock键设为Ctrl.Cap ...

最新文章

  1. java 快速入门_Java快速入门
  2. 小程序之获取用户信息取消授权处理
  3. sqlserver 安装共享功能什么意思_网络多功能电力仪表安装要注意什么
  4. SQLAlchemy 使用经验
  5. GDCM:gdcm::DirectionCosines的测试程序
  6. 基于Solr DIH实现MySQL表数据全量索引和增量索引
  7. 用SmarterFox替换Internet Explorer的“加速器”
  8. 日本字全角字符linux,Linux命令行输入全角字符被转化
  9. cups支持的打印机列表_lpadmin-配置CUPS套件中的打印机和类
  10. 在Mac下配置Macaca环境
  11. linux基本命令(49)——at命令
  12. ubuntu下安装jre 7
  13. javaMail发送邮件
  14. 第三阶段应用层——1.6 数码相册—使用FreeType在LCD上显示多行文字
  15. vue-cli脚手架和npm init vue@latest 区别
  16. html 引入 BootCDN 上的库
  17. 9 椭圆曲线密码体制
  18. 快手私信名片如何制作?
  19. t00ls.php,php学习心历(2)-中文分词
  20. SAS Planet+ArcGIS

热门文章

  1. spider(一) 什么是spider?
  2. Java--Stream流详解
  3. 图像处理(六):图像平滑
  4. matlab scatter函数怎么设置对数坐标
  5. 第一季:18es与solr的区别【Java面试题】
  6. 城市化进程与消防技术的四个阶段
  7. MySQL安装教程 + 安装包
  8. 移动支付之争,NFC较QR Code更为适合发展
  9. python反恐精英代码类似的编程_敲代码学Python:CS188之实现一致代价搜索
  10. Java入门 第八节面向对象(三)