.emacs.d / elisp / style.el

;; A file that configures styles for modes and languages

(eval-after-load "color-theme"
;     (color-theme-standard)
;     (color-theme-clarity)
;     (color-theme-euphoria)
; Cool themes
; clarity
; euphoria

; Setting the text prompt color for minibuffer
(set-face-foreground 'minibuffer-prompt "#0087ff")

;; Configuring C-mode
(defun my-c-mode-hook ()
  (c-set-style "bsd")
  (setq c-basic-offset 4
        c-indent-level 4
        c-default-style "bsd"))

(add-hook 'c-mode-common-hook 'my-c-mode-hook)

;; Change the level of indentation for <TAB>
(setq-default tab-width 4)
;; When loaded again, makes <TAB> insert 4 spaces instead of smart-indent
;; (setq indent-line-function 'insert-tab)

;; SML styling
(defun my-sml-mode-hook () "Local defaults for SML mode"
  (setq sml-indent-level 2)      ; conserve on horizontal space
  (setq words-include-escape t)  ; \ loses word break status
  (setq indent-tabs-mode nil))   ; never ever indent with tabs
(add-hook 'sml-mode-hook 'my-sml-mode-hook)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.