My Emacs Settings

Source: Internet
Author: User

(custom-set-faces
;; Custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up and so is careful.
;; Your init file should contain only one such instance.
;; If there is more than one, the they won ' t work right.
' (Default ((T (: Family "Dejavu Sans Mono": Foundry "Unknown": Slant normal:weight bold:height 143:width Normal))))
' (Company-echo-common ((t (: Foreground "dark slate Gray")))
' (Company-preview ((t (: Background "RoyalBlue4": Foreground "light Goldenrod"))))
' (Company-preview-common ((t (: Inherit Company-preview:foreground "Light Blue")))
' (COMPANY-SCROLLBAR-BG ((t (: Background "Navy")))
' (COMPANY-SCROLLBAR-FG ((t (: Background "Cadet Blue")))
' (Company-template-field ((t (: Background "dark slate gray": Foreground "light Goldenrod"))))
' (Company-tooltip ((t (: Background "dark slate gray": Foreground "light Goldenrod"))))
' (Company-tooltip-annotation ((t (: Foreground "sky blue")))
' (Company-tooltip-common ((t (: Foreground "SlateGray1")))
' (Company-tooltip-selection ((t (: Background "SlateGray4")))
' (Cursor ((t nil)))
' (Org-indent ((T nil)))

(Custom-set-variables
;; Custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up and so is careful.
;; Your init file should contain only one such instance.
;; If there is more than one, the they won ' t work right.
' (C-default-style
(Quote
(Java-mode. "Java")
(Awk-mode. "Awk")
(C-mode. "Google")
(Other. "Linux"))))
' (Comment-multi-line nil)
' (Company-auto-complete-chars (quote (32 95 41 119 46 34 36 39 60 62 47 124 33)))
' (company-backends
(Quote
(company-bbdb company-nxml company-css company-eclim company-semantic company-clang company-xcode company-cmake COMPANY-CAPF Company-files
(Company-dabbrev-code company-gtags company-etags company-keywords)
Company-oddmuse Company-dabbrev)))
' (Company-idle-delay t)
' (Cursor-type (quote bar))
' (Default
((t
(: Family "Linux libertine O": Foundry "Unknown": Slant italic:weight bold:height 128:width Normal))))
' (Display-time-mode t)
' (Ecb-compile-window-height 5)
' (Ecb-compile-window-temporally-enlarge (quote both))
' (ecb-compile-window-width (quote Edit-window))
' (Ecb-eshell-auto-activate 1)
' (ecb-layout-name "Left-analyse")
' (ecb-options-version "2.50")
' (ecb-primary-secondary-mouse-buttons (quote mouse-1--mouse-2))
' (Ecb-windows-height 0.33)
' (Ecb-windows-width 0.23)
' (ede-project-directories
(Quote
("/home/jimmy221b/jimmy/code/cprimer/chapter3" "/home/jimmy221b/cprimer")))
' (Elpy-rpc-python-command "Python3")
' (Gdb-many-windows t)
' (Global-company-mode t)
' (helm-split-window-default-side (quote right))
' (Helm-split-window-inside-p t)
' (Helm-window-prefer-horizontal-split t)
' (Indent-tabs-mode t)
' (Menu-bar-mode nil)
' (Org-indent-mode-turns-off-org-adapt-indentation t)
' (Org-indent-mode-turns-on-hiding-stars t)
' (Org-log-done (quote time))
' (Split-height-threshold 160)
' (Split-width-threshold 0)
' (split-window-preferred-function (quote split-window-sensibly))
' (Tab-width 4)
' (Tool-bar-mode nil))


;; Custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up and so is careful.
;; Your init file should contain only one such instance.
;; If there is more than one, the they won ' t work right.


(Require ' package)
(Setq package-archives
' (("GNU". "Http://elpa.gnu.org/packages/")
("GNU".) "http://mirrors.tuna.tsinghua.edu.cn/elpa/gnu/")
("Melpa". "http://mirrors.tuna.tsinghua.edu.cn/elpa/melpa/")
("Melpa". "http://melpa.milkbox.net/packages/")))
(package-initialize)

(Require ' package)
(Add-to-list ' package-archives
' ("elpy". "Http://jorgenschaefer.github.io/packages/"))

;; Do not produce backup files
;;( SETQ make-backup-file 0)

;;( Require ' pyvenv)
;; Theme Settings
;;( elpy-enable)
(Load-theme ' Tsdh-dark t)
;;( Load-theme ' wheatgrass t)
(Global-linum-mode)
;;( Require ' Color-theme)
;;( Color-theme-initialize)
;;( SETQ Color-theme-is-global T)
;;( Color-theme-robin-hood)
;;( COLOR-THEME-GNOME2)
;;( Color-theme-classic)
;;( Color-theme-subtle-hacker)

;; Auto-complete
(Add-hook ' After-init-hook ' Global-company-mode)

(Require ' Yasnippet)
(Yas-global-mode 1)

;; ECB configuration
;; ==============================================================
;;( Require ' ECB)
;; Open the ECB, m-x:ecb-activate.
;;( Require ' Ecb-autoloads)
;; Auto-start ECB and don't show daily tips
;;( Require ' ECB)
;;( SETQ ecb-auto-activate T)
;;( SETQ ecb-tip-of-the-day Nil)

(Require ' semantic)
(Require ' Cedet)
(Global-ede-mode 1)
(Semantic-mode 1)

(setq semantic-default-submodes ' (global-semantic-idle-scheduler-mode
Global-semanticdb-minor-mode
Global-semantic-idle-summary-mode
Global-semantic-mru-bookmark-mode
Global-semantic-idle-completions-mode
Global-semantic-stickyfunc-mode
Global-semantic-highlight-func-mode))
(setq company-idle-delay T)

(Require ' Srecode)
(Global-srecode-minor-mode 1)

;;( Require ' Cc-mode)
;; Auto-Clear user input brackets for C programming bracket alignment
(Electric-pair-mode 1)
;;( Require ' Flycheck)
;;( Flycheck-mode 1)
(Add-hook ' After-init-hook ' Global-flycheck-mode)

;;( Require ' Helm)
;;( Require ' Helm-config)
;;( Helm-mode 1)


(Add-hook ' C-mode-common-hook ' Google-set-c-style)
(Add-hook ' C-mode-common-hook ' google-make-newline-indent)

(Display-time-mode 1)

(Require ' remember)

(Add-hook ' Org-mode-hook ' Org-indent-mode)

My Emacs Settings

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.