(setq mouse-yank-at-point t) ; 不在鼠标点击的那个地方插入剪贴板内容 (setq kill-ring-max 200) ; 设置粘贴缓冲条目数量 (setq auto-save-mode nil) ; 自动保存模式 (setq x-select-enable-clipboard t) ; 允许emacs和外部其他程序的粘贴 (setq user-full-name "XXXXXX") (setq user-mail-address ...
3.基本配置,如下配置来源于witcxc的配置,链接为:http://blog.chinaunix.net/uid-25830557-id-317944.html。 ;;---语言环境字符集设置(utf-8)---(set-language-environment'Chinese-GB)(set-keyboard-coding-system'utf-8)(set-clipboard-coding-system'utf-8)(set-terminal-coding-system'utf-8)(set-buffer...
;;允许emacs和外部其他程序的粘贴 (setq x-select-enable-clipboard t) ;;(setq mouse-yank-at-point t) ;;使用鼠标中键可以粘贴 (setq user-full-name "Bluesky") (setq user-mail-address "merrynuts@outlook.com") ;;设置有用的个人信息,这在很多地方有用。 (setq require-final-newline t) ;; 自...
find-file-noselect会对 buffer 做一些一般的初始化,比如设置默认 major-mode,运行find-file-hook等。接着,desktop-restore-file-buffer会调用desktop-buffer-major-mode来为该 buffer 设置 major-mode,如果这个函数存在的话: (let*((auto-insertnil); Disable auto insertion(coding-system-for-read(orcoding-syst...
在上面的例子中,我使用 coding-system-for-write 指定了子进程的输出编码,我们也可以使用 coding-system-for-read 指定进程的输入编码,它们的优先级非常高。如果我们在创建子进程时使用它们指定了编码(而不是 :coding 参数),那么子进程会在编码被修改之前一直使用。
enter first char of a word, select the highlight key to move to. “C-u C-c SPC” ⇒ ace-jump-char-mode enter a char for query, select the highlight key to move to. “C-u C-u C-c SPC” ⇒ ace-jump-line-mode each non-empty line will be marked, select the highlight ke...
使用 Emacs 的人,一般都对快捷键的前缀 C 和 M 键不陌生,但其实在 Emacs 中,除了常见的 C 和 ...
(setq help-window-select 't) (setq initial-major-mode 'text-mode) ;; (prefer-coding-system 'cp950) ;; (prefer-coding-system 'gb2312) ;; (prefer-coding-system 'cp936) ;; (prefer-coding-system 'gb18030) ;; (prefer-coding-system 'utf-16) ...
(set-clipboard-coding-system 'utf-8) (set-file-name-coding-system 'utf-8) (set-buffer-file-coding-system 'utf-8) (prefer-coding-system 'utf-8) (modify-coding-system-alist 'process "*" 'utf-8) (when (display-graphic-p) (setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT ...
(setq x-select-enable-clipboard t) ; 允许emacs和外部其他程序的粘贴 (setq user-full-name "XXXXXX") (setq user-mail-address "XXXXXX@gmail.com") ; 设置有用的个人信息,这在很多地方有用。 (setq global-font-lock-mode t) ; 进行语法加亮。