我的emacs配置

Posted foreverpiano

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了我的emacs配置相关的知识,希望对你有一定的参考价值。

(setq-default cursor-type 'bar)
(setq inhibit-startup-screen t)
(tool-bar-mode 0)
(show-paren-mode 1)
(setq c-default-style "awk")
(global-set-key [f6] 'shell)
(global-set-key [f11] 'compile-file-c14)
(defun compile-file-c14()(interactive)
       (compile(format "g++ -o %s %s -Wall -Wno-misleading-indentation -Wno-parentheses -Wno-sign-compare -ftrapv -fsanitize=address -std=c++14 -DLOCAL"
               (file-name-sans-extension(buffer-name))(buffer-name))))
(global-set-key [f12] 'compile-file)
(defun compile-file()(interactive)
       (compile(format "g++ -o %s %s -Wall -Wno-misleading-indentation -Wno-parentheses -Wno-sign-compare -ftrapv -std=c++14 -DLOCAL"
               (file-name-sans-extension(buffer-name))(buffer-name))))
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(ansi-color-names-vector
   ["#212526" "#ff4b4b" "#b4fa70" "#fce94f" "#729fcf" "#e090d7" "#8cc4ff" "#eeeeec"])
 '(custom-enabled-themes '(adwaita))
 '(package-selected-packages '(auto-complete))
 '(show-paren-mode t))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(default ((t (:family "Ubuntu Mono" :foundry "DAMA" :slant normal :weight normal :height 203 :width normal)))))



;;(require 'auto-complete-config)
;;(ac-config-default)

以上是关于我的emacs配置的主要内容,如果未能解决你的问题,请参考以下文章

如何配置我的 emacs 配置?

我的emacs配置

启动 emacs 时覆盖 .emacs 配置

我的emacs配置

我的简单的emacs配置文件

我的emacs配置