Modify bundle and init; remove elpa
This commit is contained in:
commit
006d3ebf7e
8 changed files with 50 additions and 6152 deletions
|
@ -1,6 +1,9 @@
|
|||
(when (eq system-type 'darwin)
|
||||
(add-to-list 'default-frame-alist '(font . "Hack Nerd Font Mono-13"))
|
||||
(add-to-list 'default-frame-alist '(height . 100))
|
||||
(add-to-list 'default-frame-alist '(width . 80))
|
||||
(global-hl-line-mode 'global-hl-line-highlight))
|
||||
(when (display-graphic-p)
|
||||
(add-to-list 'default-frame-alist '(ns-transparent-titlebar . t))
|
||||
(add-to-list 'default-frame-alist '(ns-appearance . dark))
|
||||
(add-to-list 'default-frame-alist '(font . "Hack Nerd Font Mono-13"))
|
||||
(add-to-list 'default-frame-alist '(height . 60))
|
||||
(add-to-list 'default-frame-alist '(width . 80)))
|
||||
(unless (display-graphic-p)))
|
||||
(provide 'darwin-customs)
|
||||
|
|
4619
bundle/rst.el
4619
bundle/rst.el
File diff suppressed because it is too large
Load diff
|
@ -1,9 +1,6 @@
|
|||
(when (eq system-type 'windows-nt)
|
||||
(add-to-list 'default-frame-alist '(font . "Hack NF-12"))
|
||||
(add-to-list 'default-frame-alist '(height . 55))
|
||||
(add-to-list 'default-frame-alist '(width . 80))
|
||||
(when (display-graphic-p)
|
||||
)
|
||||
(unless (display-graphic-p)
|
||||
))
|
||||
(set-default-font "Hack NF 10")
|
||||
(add-to-list 'default-frame-alist '(height . 55))
|
||||
(add-to-list 'default-frame-alist '(width . 80))))
|
||||
(provide 'windows-customs)
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1 +0,0 @@
|
|||
Good signature from 474F05837FBDEF9B GNU ELPA Signing Agent <elpasign@elpa.gnu.org> (trust undefined) created at 2019-05-01T11:10:03+0200 using DSA
|
Binary file not shown.
Binary file not shown.
64
init.el
64
init.el
|
@ -1,5 +1,6 @@
|
|||
;; -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
;; 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.
|
||||
|
@ -15,13 +16,23 @@
|
|||
("4515feff287a98863b7b7f762197a78a7c2bfb6ec93879e7284dff184419268c" default)))
|
||||
'(display-time-world-list
|
||||
(quote
|
||||
(
|
||||
("UTC+7" "San Francisco")
|
||||
("UTC+4" "New York")
|
||||
("UTC-1" "London")
|
||||
("UTC-2" "Central Europe")
|
||||
("UTC-9" "Tokyo")
|
||||
))))
|
||||
(("America/New_York" "New York")
|
||||
("America/Los_Angeles" "Los Angeles")
|
||||
("America/Nassau" "Nassau")
|
||||
("Europe/Istanbul" "Istanbul")
|
||||
("Europe/London" "London")
|
||||
("Europe/Berlin" "Berlin")
|
||||
("Asia/Shanghai" "China")
|
||||
("Asia/Tokyo" "Tokyo"))))
|
||||
'(font-lock-maximum-decoration (quote ((ReST . 0))))
|
||||
'(global-font-lock-mode nil)
|
||||
'(global-hl-line-mode nil)
|
||||
'(newsticker-url-list
|
||||
(quote
|
||||
(("bbc" "https://feeds.bbci.co.uk/news/world/rss.xml" nil nil nil)
|
||||
("nzz" "https://www.nzz.ch/recent.rss" nil nil nil)
|
||||
("datacamp" "https://www.datacamp.com/community/rss.xml" nil nil nil)))))
|
||||
|
||||
(custom-set-faces
|
||||
;; custom-set-faces was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
|
@ -34,37 +45,42 @@
|
|||
|
||||
;; load paths
|
||||
(add-to-list 'load-path (expand-file-name "~/.emacs.d/bundle"))
|
||||
(add-to-list 'load-path (expand-file-name "~/.emacs.d/bundle/linum-relative"))
|
||||
(autoload 'fill-column-indicator "~/.emacs.d/bundle/fill-column-indicator.el")
|
||||
|
||||
(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"))
|
||||
|
||||
;; required packages
|
||||
(require 'rst)
|
||||
(require 'fill-column-indicator)
|
||||
(require 'linum-relative)
|
||||
(require 'markdown-mode)
|
||||
(require 'linum-relative)
|
||||
|
||||
;; configurations
|
||||
(setq-default indent-tabs-mode nil)
|
||||
(setq-default fill-column 72)
|
||||
(setq visible-bell 1)
|
||||
(setq linum-relative-backend 'display-line-numbers-mode)
|
||||
(setq require-final-newline t)
|
||||
(setq font-lock-maximum-decoration t)
|
||||
(setq inhibit-startup-screen t initial-buffer-choice t)
|
||||
;;(setq inhibit-startup-screen t initial-buffer-choice t)
|
||||
|
||||
;; set modes
|
||||
(line-number-mode 1)
|
||||
(column-number-mode 1)
|
||||
(display-time-mode 1)
|
||||
(display-battery-mode 1)
|
||||
(line-number-mode -1)
|
||||
(column-number-mode -1)
|
||||
(blink-cursor-mode -1)
|
||||
(display-battery-mode -1)
|
||||
(display-time-mode 1)
|
||||
(size-indication-mode -1)
|
||||
|
||||
;; UTF-8 FTW
|
||||
(set-terminal-coding-system 'utf-8)
|
||||
(set-keyboard-coding-system 'utf-8)
|
||||
(prefer-coding-system 'utf-8)
|
||||
(set-keyboard-coding-system 'utf-8)
|
||||
(set-terminal-coding-system 'utf-8)
|
||||
|
||||
;; nuke trailing whitespace when writing to a file
|
||||
(add-hook 'write-file-hooks 'delete-trailing-whitespace)
|
||||
(add-hook 'org-mode-hook 'turn-on-font-lock)
|
||||
(add-hook 'markdown-mode-hook 'turn-on-font-lock)
|
||||
(add-hook 'python-mode-hook 'turn-on-font-lock)
|
||||
|
||||
;; I got sick of typing "yes"
|
||||
(defalias 'yes-or-no-p 'y-or-n-p)
|
||||
|
@ -74,13 +90,13 @@
|
|||
(when (fboundp mode) (funcall mode -1)))
|
||||
|
||||
;; start a server, unless one is already running
|
||||
(when (require 'server nil t)
|
||||
(unless (server-running-p)
|
||||
(server-start)))
|
||||
|
||||
;; always highlight syntax
|
||||
(global-font-lock-mode t)
|
||||
(when (require 'server nil t) (unless (server-running-p) (server-start)))
|
||||
|
||||
;; custom packages
|
||||
(require 'darwin-customs)
|
||||
(require 'windows-customs)
|
||||
|
||||
(defun copy-whole-buffer ()
|
||||
"Copy entire buffer to clipboard"
|
||||
(interactive)
|
||||
(clipboard-kill-ring-save (point-min) (point-max)))
|
||||
|
|
Loading…
Add table
Reference in a new issue