2019-05-01 19:03:10 +02:00
|
|
|
;; -*- coding: utf-8 -*-
|
2019-05-07 17:20:19 +02:00
|
|
|
(add-to-list 'custom-theme-load-path (expand-file-name "~/.emacs.d/bundle/nord-theme/"))
|
|
|
|
(add-to-list 'load-path (expand-file-name "~/.emacs.d/bundle"))
|
|
|
|
(add-to-list 'load-path (expand-file-name "~/.emacs.d/bundle/markdown-mode"))
|
|
|
|
(add-to-list 'load-path (expand-file-name "~/.emacs.d/bundle/linum-relative"))
|
2019-05-01 21:49:02 +02:00
|
|
|
|
2019-05-07 17:20:19 +02:00
|
|
|
(load-theme 'nord t)
|
2019-05-01 21:49:02 +02:00
|
|
|
|
2019-05-07 17:20:19 +02:00
|
|
|
(require 'markdown-mode)
|
|
|
|
(require 'linum-relative)
|
|
|
|
(require 'fill-column-indicator)
|
2019-05-06 17:05:58 +02:00
|
|
|
|
2019-05-01 21:49:02 +02:00
|
|
|
;; Added by Package.el. This must come before configurations of
|
|
|
|
;; installed packages. Don't delete this line. If you don't want it,
|
|
|
|
;; just comment it out by adding a semicolon to the start of the line.
|
|
|
|
;; You may delete these explanatory comments.
|
|
|
|
(package-initialize)
|
2019-05-07 17:20:19 +02:00
|
|
|
(add-to-list 'package-archives
|
|
|
|
'("melpa-stable" . "https://stable.melpa.org/packages/"))
|
2019-05-01 18:41:31 +02:00
|
|
|
(custom-set-variables
|
|
|
|
;; custom-set-variables was added by Custom.
|
|
|
|
;; If you edit it by hand, you could mess it up, so be careful.
|
|
|
|
;; Your init file should contain only one such instance.
|
|
|
|
;; If there is more than one, they won't work right.
|
|
|
|
'(custom-safe-themes
|
|
|
|
(quote
|
2019-05-03 11:49:08 +02:00
|
|
|
("4515feff287a98863b7b7f762197a78a7c2bfb6ec93879e7284dff184419268c" default)))
|
|
|
|
'(display-time-world-list
|
|
|
|
(quote
|
2019-05-07 19:14:57 +02:00
|
|
|
(("UTC+7" "Los Angeles")
|
|
|
|
("UTC+4" "New York")
|
|
|
|
("UTC-1" "London")
|
|
|
|
("UTC-2" "Berlin")
|
|
|
|
("UTC-3" "Istanbul")
|
|
|
|
("UTC-8" "Shanghai")
|
|
|
|
("UTC-8" "Hong Kong")
|
|
|
|
("UTC-9" "Tokyo"))))
|
2019-05-07 17:20:19 +02:00
|
|
|
'(fill-column 72)
|
2019-05-04 23:27:15 +02:00
|
|
|
'(font-lock-maximum-decoration (quote ((ReST . 0))))
|
|
|
|
'(global-font-lock-mode nil)
|
2019-05-06 17:05:58 +02:00
|
|
|
'(global-hl-line-mode nil)
|
2019-05-07 17:20:19 +02:00
|
|
|
'(indent-tabs-mode nil)
|
|
|
|
'(inhibit-startup-screen t)
|
2019-05-07 19:26:30 +02:00
|
|
|
'(line-spacing 5)
|
2019-05-07 17:20:19 +02:00
|
|
|
'(linum-relative-backend (quote display-line-numbers-mode))
|
|
|
|
'(newsticker-url-list-defaults
|
2019-05-06 17:05:58 +02:00
|
|
|
(quote
|
2019-05-07 17:20:19 +02:00
|
|
|
(("Emacs Wiki" "https://www.emacswiki.org/emacs?action=rss" nil 3600)
|
|
|
|
("LWN (Linux Weekly News)" "https://lwn.net/headlines/rss")
|
2019-05-07 19:58:25 +02:00
|
|
|
("nzz" "https://www.nzz.ch/recent.rss")
|
|
|
|
("emacs rocks" "http://emacsrocks.com/atom.xml")
|
2019-05-07 17:20:19 +02:00
|
|
|
("Tagesschau (german)" "http://www.tagesschau.de/newsticker.rdf" nil 1800))))
|
|
|
|
'(package-selected-packages (quote (magit)))
|
|
|
|
'(require-final-newline t)
|
|
|
|
'(visible-bell 1))
|
2019-05-06 17:05:58 +02:00
|
|
|
|
2019-05-01 18:41:31 +02:00
|
|
|
(custom-set-faces
|
|
|
|
;; custom-set-faces was added by Custom.
|
|
|
|
;; If you edit it by hand, you could mess it up, so be careful.
|
|
|
|
;; Your init file should contain only one such instance.
|
|
|
|
;; If there is more than one, they won't work right.
|
|
|
|
)
|
2019-05-01 19:03:10 +02:00
|
|
|
|
2019-05-03 16:13:49 +02:00
|
|
|
;; set modes
|
2019-05-04 23:27:15 +02:00
|
|
|
(line-number-mode -1)
|
|
|
|
(column-number-mode -1)
|
2019-05-02 16:51:25 +02:00
|
|
|
(blink-cursor-mode -1)
|
2019-05-04 23:27:15 +02:00
|
|
|
(display-battery-mode -1)
|
|
|
|
(display-time-mode 1)
|
|
|
|
(size-indication-mode -1)
|
2019-05-03 11:49:08 +02:00
|
|
|
|
|
|
|
;; UTF-8 FTW
|
2019-05-02 13:16:44 +02:00
|
|
|
(prefer-coding-system 'utf-8)
|
2019-05-06 08:28:46 +02:00
|
|
|
(set-keyboard-coding-system 'utf-8)
|
|
|
|
(set-terminal-coding-system 'utf-8)
|
2019-05-02 19:40:34 +02:00
|
|
|
|
2019-05-03 11:49:08 +02:00
|
|
|
;; nuke trailing whitespace when writing to a file
|
|
|
|
(add-hook 'write-file-hooks 'delete-trailing-whitespace)
|
2019-05-06 08:28:46 +02:00
|
|
|
(add-hook 'org-mode-hook 'turn-on-font-lock)
|
2019-05-06 17:05:58 +02:00
|
|
|
(add-hook 'markdown-mode-hook 'turn-on-font-lock)
|
|
|
|
(add-hook 'python-mode-hook 'turn-on-font-lock)
|
2019-05-03 11:49:08 +02:00
|
|
|
|
|
|
|
;; I got sick of typing "yes"
|
|
|
|
(defalias 'yes-or-no-p 'y-or-n-p)
|
|
|
|
|
|
|
|
;; Turn off chrome
|
|
|
|
(dolist (mode '(menu-bar-mode tool-bar-mode scroll-bar-mode))
|
|
|
|
(when (fboundp mode) (funcall mode -1)))
|
|
|
|
|
|
|
|
;; start a server, unless one is already running
|
2019-05-04 23:27:15 +02:00
|
|
|
(when (require 'server nil t) (unless (server-running-p) (server-start)))
|
2019-05-03 11:49:08 +02:00
|
|
|
|
2019-05-03 16:13:49 +02:00
|
|
|
;; custom packages
|
2019-05-02 19:40:34 +02:00
|
|
|
(require 'darwin-customs)
|
2019-05-03 11:49:08 +02:00
|
|
|
(require 'windows-customs)
|
2019-05-06 17:05:58 +02:00
|
|
|
|
|
|
|
(defun copy-whole-buffer ()
|
|
|
|
"Copy entire buffer to clipboard"
|
|
|
|
(interactive)
|
|
|
|
(clipboard-kill-ring-save (point-min) (point-max)))
|