Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (setq custom-file "~/.config/emacs/custom.el")
- (load custom-file)
- (setq inhibit-startup-screen t)
- (tool-bar-mode 0)
- (menu-bar-mode 0)
- (scroll-bar-mode 0)
- (show-paren-mode 0)
- (column-number-mode 1)
- (display-time-mode)
- (setq backup-directory-alist '(("." . "~/.config/emacs/backup")))
- (setq auto-save-default nil)
- (setq create-lockfiles nil)
- (set-face-attribute 'default nil :font "Liberation Mono" :height 105)
- (add-hook 'c-mode-common-hook
- (lambda ()
- (setq indent-tabs-mode nil)
- (setq show-trailing-whitespace t)
- (c-set-style "stroustrup")
- (c-set-offset 'case-label '+)
- (set-variable 'compile-command "build.bat")
- (set-variable 'compilation-read-command nil)
- (keymap-local-set "M-m" 'compile)
- (keymap-local-set "M-n" 'next-error)
- (keymap-local-set "M-p" 'previous-error)
- ))
- ;; Bright-red TODOs
- (setq fixme-modes '(c++-mode c-mode emacs-lisp-mode))
- (make-face 'font-lock-fixme-face)
- (make-face 'font-lock-note-face)
- (make-face 'font-lock-important-face)
- (make-face 'font-lock-study-face)
- (mapc (lambda (mode)
- (font-lock-add-keywords
- mode
- '(("\\<\\(TODO\\)" 1 'font-lock-fixme-face t)
- ("\\<\\(NOTE\\)" 1 'font-lock-note-face t)
- ("\\<\\(IMPORTANT\\)" 1 'font-lock-important-face t)
- ("\\<\\(STUDY\\)" 1 'font-lock-study-face t))))
- fixme-modes)
- (modify-face 'font-lock-fixme-face "Red" nil nil t nil t nil nil)
- (modify-face 'font-lock-note-face "Dark Green" nil nil t nil t nil nil)
- (modify-face 'font-lock-important-face "Yellow" nil nil t nil t nil nil)
- (modify-face 'font-lock-study-face "Orange" nil nil t nil t nil nil)
Advertisement
Add Comment
Please, Sign In to add comment