init.el
changeset 43 cfdd7b253085
parent 42 ade8c2cc1b04
child 44 6e66ab8d9185
equal deleted inserted replaced
42:ade8c2cc1b04 43:cfdd7b253085
    11  inhibit-splash-screen t                  ; disable splash screen
    11  inhibit-splash-screen t                  ; disable splash screen
    12  truncate-lines t                         ; truncate, not wrap, lines
    12  truncate-lines t                         ; truncate, not wrap, lines
    13  indent-tabs-mode nil                     ; only uses spaces for indentation
    13  indent-tabs-mode nil                     ; only uses spaces for indentation
    14  split-width-threshold 181                ; min width to split window horizontially
    14  split-width-threshold 181                ; min width to split window horizontially
    15  split-height-threshold 120               ; min width to split window vertically
    15  split-height-threshold 120               ; min width to split window vertically
    16  reb-re-syntax 'string)                   ; use string syntax for regexp builder
    16  reb-re-syntax 'string                    ; use string syntax for regexp builder
       
    17  require-final-newline 'visit-save)       ; add a newline automatically
    17 
    18 
    18 (put 'set-goal-column 'disabled nil)      ; enable goal column setting
    19 (put 'set-goal-column 'disabled nil)      ; enable goal column setting
    19 (put 'narrow-to-region 'disabled nil)     ; enable hiding
    20 (put 'narrow-to-region 'disabled nil)     ; enable hiding
    20 (put 'narrow-to-page 'disabled nil)
    21 (put 'narrow-to-page 'disabled nil)
    21 
    22 
    88  whitespace-style                                       ; whitespace to highlight
    89  whitespace-style                                       ; whitespace to highlight
    89  '(trailing lines-tail empty indentation
    90  '(trailing lines-tail empty indentation
    90             space-before-tab space-after-tab))
    91             space-before-tab space-after-tab))
    91 
    92 
    92 ;;; python-mode
    93 ;;; python-mode
    93 (add-hook 'python-mode-hook (lambda () (setq indent-tabs-mode t)))
    94 (add-hook 'python-mode-hook (lambda () (setq tab-width 4)))
    94 
    95 
    95 ;;; org-mode
    96 ;;; org-mode
    96 (add-hook
    97 (add-hook
    97  'org-mode-hook
    98  'org-mode-hook
    98  (lambda ()
    99  (lambda ()