我的Emacs配置文件

    技术2022-05-18  15

    保存路径:C:\Users\nile\AppData\Roaming\.emacs

    ;;========================================================================================= ;;                        GNU Emacs 23.3.1 on Windows 7 ;;=========================================================================================

    ;;========================================================================================= ;;                                   基本配置 ;;========================================================================================= ;;显示行号(line-num.el) (global-linum-mode 1)

    ;;启动时自动打开上次打开过的文件 (desktop-save-mode 1)

    ;;字体 (set-default-font "Bitstream Vera Sans Mono-10")

    ;; 配色 需要安装插件 (require 'color-theme) (color-theme-dark-blue2)

    ;;配色 不需要插件 ;;(set-background-color "black") ;; 使用黑色背景 ;;(set-foreground-color "white") ;; 使用白色前景 ;;(set-face-foreground 'region "red")  ;; 区域前景颜色设为红色 ;;(set-face-background 'region "blue") ;; 区域背景色设为蓝色

    ;;========================================================================================= ;;                              设置全局快捷键 ;;=========================================================================================

    ;; F1:最大化当前buffer (global-set-key [(f1)] 'delete-other-windows)

    ;; F2:切换到dired模式 (global-set-key [(f2)] 'dired)

    ;; F3:执行shell (global-set-key [(f3)] 'shell)

    ;; F4:关闭buffer (global-set-key [(f4)] 'kill-buffer-and-window)

    ;; F5:打开speedbar (global-set-key [(f5)] 'speedbar)

    ;; F6:跳转到另一个窗口 (global-set-key [(f6)] 'other-window)

    ;; F7:编译 (global-set-key [(f7)] 'compile) ;;设置编译命令为make (setq compile-command "make")

    ;; F9:gdb (global-set-key [(f9)] 'gdb)

    ;; F10: gdb:next (global-set-key [(f10)] 'gud-next)

    ;; F11::gdb:step (global-set-key [(f11)] 'gud-step)

    ;;F12:函数自动跳转 (global-set-key [f12] 'semantic-ia-fast-jump)

    ;;========================================================================================= ;;                                   插件配置 ;;========================================================================================= ;;很牛的代码补全插件 (require 'yasnippet-bundle)


    最新回复(0)