Emacs config file (~/.emacs)

|

My current ~/.emacs file

;;; additional load path, for non-standard modules,
;;; comment out this, if you need this
;(setq load-path (cons "~/share/emacs" load-path))

; general
(setq inhibit-startup-message t)

; enable Transient Mark mode
(transient-mark-mode 1); In Transient Mark mode, the region is active only temporarily, and it is highlighted while it is active

; enable Ctrl+C, Ctrl+V, Ctrl+X hotkeys
(cua-mode t)
(transient-mark-mode 1) ;; No region when it is not highlighted
(setq cua-keep-region-after-copy t) ;; Standard Windows behaviour

; stop inserting tab characters and insert spaces instead
(setq-default indent-tabs-mode nil)

; set standard indent to 4
(setq standard-indent 4)

(require 'blank-mode)
(global-blank-mode 1)

; automatically indent after a return
(global-set-key "\C-m" 'newline-and-indent)

; Make emacs highlight bracket pairs:
(show-paren-mode t)

; Stop emacs from doing jumps when scrolling.
(setq scroll-step 1)

; Preventing the creation of backup files
(setq make-backup-files nil)