Last active
September 8, 2016 15:40
-
-
Save ceving/dac5492f67232e647da1c8069158ff17 to your computer and use it in GitHub Desktop.
Dot Emacs Snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun msg (arg) | |
(message (format "%S" arg))) | |
(server-start) | |
(blink-cursor-mode 0) | |
(tool-bar-mode -1) | |
(setq column-number-mode t) | |
(show-paren-mode 1) | |
(setq-default blink-matching-paren nil) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defconst backup-directory "~/.emacs.d/backup" | |
"Name of the backup directory.") | |
(setq backup-directory-alist | |
`((".*" . ,backup-directory))) | |
(setq auto-save-file-name-transforms | |
`((".*" ,backup-directory t))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(setq calendar-week-start-day 1 | |
calendar-day-name-array ["Sonntag" "Montag" "Dienstag" "Mittwoch" | |
"Donnerstag" "Freitag" "Samstag"] | |
calendar-month-name-array ["Januar" "Februar" "März" "April" "Mai" | |
"Juni" "Juli" "August" "September" | |
"Oktober" "November" "Dezember"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(setq-default indent-tabs-mode nil) | |
(setq-default c-basic-offset 2) | |
(setq-default perl-indent-level 2) | |
(setq-default js-indent-level 2) | |
(setq-default sh-basic-offset 2) | |
(setq-default sh-indentation 2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(add-to-list 'load-path "~/.emacs.d/lisp/") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(autoload 'markdown-mode "markdown-mode" | |
"Major mode for editing Markdown files" t) | |
(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode)) | |
(add-to-list 'auto-mode-alist '("README\\'" . markdown-mode)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'tramp) | |
(require 'tramp-sh) | |
(setq password-cache-expiry nil) | |
(add-to-list 'tramp-remote-process-environment "TMOUT=") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment