Last active
January 4, 2017 09:31
-
-
Save saulfield/730dd0dc6fa4c9cd07b4a07e8e6bdbe5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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]) | |
'(custom-enabled-themes (quote (wombat))) | |
'(inhibit-startup-screen 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 (:inherit nil :stipple nil :background "#242424" :foreground "#bfbfbf" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 113 :width normal :foundry "1ASC" :family "Liberation Mono"))))) | |
;; Font and syntax colours | |
(add-to-list 'default-frame-alist '(font . "Liberation Mono-11.5")) | |
(set-face-attribute 'default t :font "Liberation Mono-11.5") | |
(set-face-attribute 'font-lock-builtin-face nil :foreground "#DAB98F") ;#define and #include | |
(set-face-attribute 'font-lock-comment-face nil :foreground "gray50") | |
(set-face-attribute 'font-lock-doc-face nil :foreground "#44d0f9") | |
(set-face-attribute 'font-lock-string-face nil :foreground "#44d0f9") | |
(set-face-attribute 'default nil :foreground "#A9C0C4") | |
(set-face-attribute 'font-lock-keyword-face nil :foreground "#A9C0C4") | |
(set-face-attribute 'font-lock-type-face nil :foreground "#A9C0C4") | |
(set-face-attribute 'font-lock-function-name-face nil :foreground "#A9C0C4") | |
(set-face-attribute 'font-lock-variable-name-face nil :foreground "#A9C0C4") | |
(set-face-attribute 'font-lock-constant-face nil :foreground "#A9C0C4") | |
;; GUI options | |
(tool-bar-mode -1) | |
(menu-bar-mode -1) | |
(toggle-scroll-bar -1) | |
(add-to-list 'default-frame-alist '(fullscreen . maximized)) | |
;; Editing | |
(define-key global-map "\C-a" 'back-to-indentation) | |
;; C and C++ formatting | |
(require 'cc-mode) | |
(cua-mode 1) | |
(global-set-key "\C-s" 'save-buffer) | |
(defun my-c-mode-common-hook () | |
;; my customizations for all of c-mode, c++-mode, objc-mode, java-mode | |
(c-set-offset 'substatement-open 0) | |
;; other customizations can go here | |
(setq c++-tab-always-indent t) | |
(setq c-basic-offset 4) ;; Default is 2 | |
(setq c-indent-level 4) ;; Default is 2 | |
(setq tab-stop-list '(4 8 12 16 20 24 28 32 36 40 44 48 52 56 60)) | |
(setq tab-width 4) | |
(setq indent-tabs-mode t) ; use spaces only if nil | |
) | |
(add-hook 'c-mode-common-hook 'my-c-mode-common-hook) | |
;; Compilation | |
(setq saul-makescript "~/programming/handmade/build.sh") | |
(defun build () | |
"Make the current build." | |
(interactive) | |
(compile saul-makescript) | |
(other-window 1)) | |
(global-set-key "\em" 'build) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment