我的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)

原文地址:https://www.cnblogs.com/foreverpiano/p/9133702.html