Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;; 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.
- (require 'package)
- (let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
- (not (gnutls-available-p))))
- (proto (if no-ssl "http" "https")))
- ;; Comment/uncomment these two lines to enable/disable MELPA and MELPA Stable as desired
- (add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t)
- ;;(add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t)
- (when (< emacs-major-version 24)
- ;; For important compatibility libraries like cl-lib
- (add-to-list 'package-archives '("gnu" . (concat proto "://elpa.gnu.org/packages/")))))
- (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-names-vector
- ["#242424" "#e5786d" "#95e454" "#cae682" "#8ac6f2" "#333366" "#ccaa8f" "#f6f3e8"])
- '(blink-cursor-mode t)
- '(custom-enabled-themes (quote (wombat)))
- '(display-battery-mode t)
- '(package-selected-packages (quote (company company-c-headers sr-speedbar use-package))))
- (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 python interpreter
- (setq python-shell-interpreter "/anaconda/bin/python")
- ;; Load tuareg major mode
- (load "/Users/weixin/.opam/4.06.0/share/emacs/site-lisp/tuareg-site-file")
- ;; Dired settings
- (when (string= system-type "darwin")
- (setq dired-use-ls-dired nil))
- ;; Speedbar settings
- (setq speedbar-directory-unshown-regexp "^\\(CVS\\|RCS\\|SCCS\\|\\.\\.*$\\)\\'")
- (setq speedbar-show-unknown-files t)
- (setq sr-speedbar-right-side nil)
- (global-set-key (kbd "C-c d") 'sr-speedbar-toggle)
- ;; Company settings
- (require 'company)
- (require 'cc-mode)
- (setq company-idle-delay 0)
- (setq company-minimum-prefix-length 3)
- (setq company-backends (delete 'company-semantic company-backends))
- (add-to-list 'company-backends 'company-c-headers)
- (define-key c-mode-map [(tab)] 'company-complete)
- (define-key c++-mode-map [(tab)] 'company-complete)
- (add-hook 'after-init-hook (lambda()
- (global-company-mode)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement