diff options
Diffstat (limited to '.emacs.pure')
| -rw-r--r-- | .emacs.pure | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/.emacs.pure b/.emacs.pure index 1f703c7..a4d0a17 100644 --- a/.emacs.pure +++ b/.emacs.pure | |||
| @@ -55,6 +55,35 @@ | |||
| 55 | ;; vim-Scroll | 55 | ;; vim-Scroll |
| 56 | (setq scroll-conservatively 1) | 56 | (setq scroll-conservatively 1) |
| 57 | 57 | ||
| 58 | ;; European datatime format | ||
| 59 | (setq calendar-date-display-form | ||
| 60 | '((if dayname (concat dayname ", ")) day " " monthname " " year)) | ||
| 61 | (setq calendar-time-display-form | ||
| 62 | '(24-hours ":" minutes (if time-zone " (") time-zone (if time-zone ")"))) | ||
| 63 | |||
| 64 | ;; week starts on Monday | ||
| 65 | (setq calendar-week-start-day 1) | ||
| 66 | (setq org-agenda-start-on-weekday 1) | ||
| 67 | |||
| 68 | ;; display week numbers | ||
| 69 | (setq calendar-intermonth-text | ||
| 70 | '(propertize | ||
| 71 | (format "%2d" | ||
| 72 | (car | ||
| 73 | (calendar-iso-from-absolute | ||
| 74 | (calendar-absolute-from-gregorian (list month day year))))) | ||
| 75 | 'font-lock-face 'font-lock-warning-face)) | ||
| 76 | |||
| 77 | (setq calendar-intermonth-header | ||
| 78 | (propertize "Wnr" ; or e.g. "KW" in Germany | ||
| 79 | 'font-lock-face 'font-lock-keyword-face)) | ||
| 80 | |||
| 81 | |||
| 82 | ;; sunrise / sunset | ||
| 83 | ;; (setq calendar-latitude 59.98765) | ||
| 84 | ;; (setq calendar-longitude 10.98765) | ||
| 85 | ;; (setq calendar-location-name "Oslo") | ||
| 86 | |||
| 58 | ;; Various | 87 | ;; Various |
| 59 | (setq auto-save-default nil) | 88 | (setq auto-save-default nil) |
| 60 | (setq make-backup-files nil) | 89 | (setq make-backup-files nil) |
| @@ -76,8 +105,9 @@ | |||
| 76 | ;; Programming section | 105 | ;; Programming section |
| 77 | 106 | ||
| 78 | ;; Indentation | 107 | ;; Indentation |
| 79 | (setq-default c-basic-offset 4 tab-width 4 indent-tabs-mode nil js-indent-level 4 sgml-basic-offset 4) | 108 | ;;(setq-default c-basic-offset 4 tab-width 4 indent-tabs-mode nil js-indent-level 4 sgml-basic-offset 4) |
| 80 | ;;(setq-default c-basic-offset 4 tab-width 4 indent-tabs-mode nil) | 109 | (setq-default c-basic-offset 4 tab-width 4 indent-tabs-mode nil) |
| 110 | ;;(setq js-indent-level 2) | ||
| 81 | ;;(setq-default c-basic-offset 4 tab-width 4) | 111 | ;;(setq-default c-basic-offset 4 tab-width 4) |
| 82 | 112 | ||
| 83 | ;; Default coding style | 113 | ;; Default coding style |
