zoukankan      html  css  js  c++  java
  • Emacs配置

    Emacs配置

    简约配置,时尚易用。

    (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-faces-vector
       [default default default italic underline success warning error])
     '(blink-cursor-mode nil)
     '(cua-mode t nil (cua-base))
     '(cursor-type (quote bar))
     '(custom-enabled-themes (quote (tango-dark)))
     '(inhibit-startup-screen t)
     '(show-paren-mode t)
     '(tool-bar-mode nil))
    (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.
     )
    (set-frame-parameter (selected-frame) 'alpha (list 25 25)) 
    (add-to-list 'default-frame-alist (cons 'alpha (list 85 85)))
    
    (global-set-key (kbd "C-s") 'save-buffer)
    (global-set-key (kbd "C-z") 'undo)
    (global-set-key (kbd "C-a") 'mark-whole-buffer)
    (global-set-key [f9] 'compile-file)
    (global-set-key (kbd "C-p ") 'compile-file)
    (global-set-key (kbd "RET") 'newline-and-indent)
    (global-set-key [f12] 'super-compile-file)
    (global-set-key [f10] 'gud-gdb)
    (setq tap-width 6)
    (setq-default c-basic-offset 6)
    (setq scroll-step 1
          scroll-margin 5
          scroll-conservatively 10000
          )
    (defun compile-file ()
      (interactive)
      (compile (format "g++ -o %s %s -lm -Wall -g -std=c++11 -O2" (file-name-sans-extension (buffer-name))(buffer-name) (file-name-sans-extension (buffer-name))))
      )
    
    (defun super-compile-file ()
      (interactive)
      (compile (format "g++ -o %s %s -lm -Wall -g -std=c++11 -Ofast" (file-name-sans-extension (buffer-name))(buffer-name) (file-name-sans-extension (buffer-name))))
      )
    
    
  • 相关阅读:
    11-28--订餐系统项目跟进
    冲刺一
    冲刺一 (Day 3)
    冲刺一 (Day 2)
    1117 冲刺一(Day 1)
    Value must be an existing directory配置tomcat问题
    第三个spring冲刺总结(附团队贡献分)
    第三个spring冲刺第10天
    第三个spring冲刺第9天
    第三个spring冲刺第8天
  • 原文地址:https://www.cnblogs.com/winlere/p/10657768.html
Copyright © 2011-2022 走看看