zoukankan      html  css  js  c++  java
  • My Emacs

    ;; Added by Package.el.  This must come before configurations of
    ;; installed packages.  Don't delete this line.  If you don't want it,
    ;; just comment it out by adding a semicolon to the start of the line.
    ;; You may delete these explanatory comments.
    (package-initialize)
    
    (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])
     '(ansi-color-names-vector
       ["#2e3436" "#a40000" "#4e9a06" "#c4a000" "#204a87" "#5c3566" "#729fcf" "#eeeeec"])
     '(custom-enabled-themes (quote (tsdh-dark)))
     '(package-selected-packages (quote (auto-complete company yasnippet))))
    (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.
     )
    (global-linum-mode t) ;;line num 显示行号
    (setq-default indent-tabs-mode nil)  ;;将tab转变为空格
    (setq c-basic-offset 4)
    (setq default-tab-width 4) ;;tab width 设置缩进以及tab键
    (electric-pair-mode t)
    (electric-layout-mode t)
    (electric-indent-mode t)
    ;;electric pair 括号补全
    (show-paren-mode t) ;;show paren 括号配对
    (global-hl-line-mode t) ;;high light line 高亮当前行
    (setq-default cursor-type 'bar);;改变光标
    ;;-*-Baskerville-normal-normal-normal-*-20-*-*-*-p-0-iso10646-1
    (set-default-font "-*-Courier New-normal-normal-normal-*-25-*-*-*-m-0-iso10646-1")
    ;;考试copy到这里
    (add-to-list 'load-path
                  "~/.emacs.d/plugins/yasnippet")
    (require 'yasnippet)
    (yas-global-mode 1)
    
    (require 'package)
    (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
    (when (< emacs-major-version 24)
      (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
    (package-initialize)
    
    (add-to-list 'load-path "~/.emacs.d/elpa/auto-complete-20170125.245")
    (require 'auto-complete-config)
    (add-to-list 'ac-dictionary-directories "~/.emacs.d/elpa/auto-complete-20170125.245/dict")
    (ac-config-default)
    
    ;;this kill the last program
    (setq make-backup-files nil)
    
    

    叛党了,现在是vim党

  • 相关阅读:
    云图小助理
    ping包的checksum校验和
    ftp相关
    初始化字符串
    安全的域名解析
    10进制转62进制
    centos6一键安装WordPress
    CEF3编译
    一次性生产KEY
    linux系统问题排查
  • 原文地址:https://www.cnblogs.com/Atoner/p/14111379.html
Copyright © 2011-2022 走看看