summaryrefslogtreecommitdiff
path: root/.emacs
blob: 8b8cda51c379d51a90f481ae7ad478ef28abe77a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
;; .emacs
;
;;
;;; customizations follow
;;
;

(setq default-truncate-lines t)

;; turn off backup files
(setq make-backup-files nil)
(setq auto-save-default nil)

;; C programming considerations
;(setq-default indent-tabs-mode nil)
(setq-default c-basic-offset 4)
(c-set-offset 'substatement-open 0)
(c-set-offset 'inextern-lang 0)
(setq c-default-style "linux")

;; Text mode considerations
;;(define-key text-mode-map (kbd "TAB") 'tab-to-tab-stop)

;; Key bindings
(global-set-key [f1] 'goto-line)

;
;;
;;; end customizations
;;
;

;;; uncomment this line to disable loading of "default.el" at startup
;; (setq inhibit-default-init t)

;; turn on font-lock mode
(when (fboundp 'global-font-lock-mode)
  (global-font-lock-mode t))

;; enable visual feedback on selections
;(setq transient-mark-mode t)

;; default to better frame titles
(setq frame-title-format
      (concat  "%b - emacs@" (system-name)))

;; default to unified diffs
(setq diff-switches "-u")

;; always end a file with a newline
;(setq require-final-newline 'query)