emacs+prelude问题配置
2016-04-21 00:00
417 查看
Ispell 中文问题
参考 : Ispell 在emacs中常见问题
添加:
2. 启用solarized-theme
通过包安装solarized-theme,然后添加:
3. 高亮当前行
参考:Changing highlight line color in emacs
修改高亮颜色为绿色,护眼。
使用hl-line+包,启动时就高亮了一下,后来就没有了。
以下是hl-line+包配置,没用:
4.让 emacs 在命令行下支持剪切板共享
参考:让 emacs 在命令行下支持剪切板共享
安装xsel
添加配置信息:
参考 : 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 ))
相关文章推荐
- iPhone配置静态IP
- 在Mac上显示iPhone界面
- iPhone如何添加邮箱
- 使用AirDrop分享
- navigationItem的title文字换成图片方法
- 服务器时钟偏差处理
- select 选择001
- hbase region和meta表的组成
- hbase各组件的作用
- 使用Picasso加载图片的内存优化实践
- 关于DBGRIDEH (代码)多选
- 常用正则表达式
- ios开发,javascript直接调用oc代码而非通过改变url回调方式
- iOS js与objective-c的交互(转)
- 使用原生的Base64
- jquery通过多个属性选择器过滤
- go Slices 数组合并
- 科技神级公司面试题
- mysql 保存emoji 4字节宽度字符串
- 表单提交时单独打开一个页面