summaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/.gitignore~1
-rw-r--r--.emacs.d/TODO.md~0
-rw-r--r--.emacs.d/auto-save-list/.saves-1063-steve~8
-rw-r--r--.emacs.d/auto-save-list/.saves-1119-steve~8
-rw-r--r--.emacs.d/auto-save-list/.saves-1187-steve~6
-rw-r--r--.emacs.d/auto-save-list/.saves-12850-steve~2
-rw-r--r--.emacs.d/auto-save-list/.saves-1490-steve~4
-rw-r--r--.emacs.d/auto-save-list/.saves-2594-steve~2
-rw-r--r--.emacs.d/auto-save-list/.saves-4830-steve~2
-rw-r--r--.emacs.d/auto-save-list/.saves-655-steve~4
-rw-r--r--.emacs.d/auto-save-list/.saves-833-steve~2
-rw-r--r--.emacs.d/auto-save-list/.saves-859-steve~2
-rw-r--r--.emacs.d/custom.el~21
-rw-r--r--.emacs.d/init.el~70
-rw-r--r--.emacs.d/lisp/init-company.el~0
-rw-r--r--.emacs.d/lisp/init-elpa.el~0
-rw-r--r--.emacs.d/lisp/init-evil.el~47
-rw-r--r--.emacs.d/lisp/init-expand-region.el~8
-rw-r--r--.emacs.d/lisp/init-flycheck.el~13
-rw-r--r--.emacs.d/lisp/init-helm.el~15
-rw-r--r--.emacs.d/lisp/init-neotree.el~11
-rw-r--r--.emacs.d/lisp/init-org.el~55
-rw-r--r--.emacs.d/lisp/init-program-basic.el~53
-rw-r--r--.emacs.d/lisp/init-slime.el~13
-rw-r--r--.emacs.d/lisp/init-window-numbering.el~3
25 files changed, 0 insertions, 350 deletions
diff --git a/.emacs.d/.gitignore~ b/.emacs.d/.gitignore~
deleted file mode 100644
index ffe32fa..0000000
--- a/.emacs.d/.gitignore~
+++ /dev/null
@@ -1 +0,0 @@
-./elpa
diff --git a/.emacs.d/TODO.md~ b/.emacs.d/TODO.md~
deleted file mode 100644
index e69de29..0000000
--- a/.emacs.d/TODO.md~
+++ /dev/null
diff --git a/.emacs.d/auto-save-list/.saves-1063-steve~ b/.emacs.d/auto-save-list/.saves-1063-steve~
deleted file mode 100644
index 5c12ae2..0000000
--- a/.emacs.d/auto-save-list/.saves-1063-steve~
+++ /dev/null
@@ -1,8 +0,0 @@
-/home/steve/tmp/review/Lao_Lao/ctrip.py
-/home/steve/tmp/review/Lao_Lao/#ctrip.py#
-/home/steve/tmp/review/Fiesta_Resort/ctrip.py
-/home/steve/tmp/review/Fiesta_Resort/#ctrip.py#
-/home/steve/tmp/review/Hyatt/ctrip.py
-/home/steve/tmp/review/Hyatt/#ctrip.py#
-/home/steve/tmp/review/Kensington_Hotel_Saipan/ctrip.py
-/home/steve/tmp/review/Kensington_Hotel_Saipan/#ctrip.py#
diff --git a/.emacs.d/auto-save-list/.saves-1119-steve~ b/.emacs.d/auto-save-list/.saves-1119-steve~
deleted file mode 100644
index fe9f0ec..0000000
--- a/.emacs.d/auto-save-list/.saves-1119-steve~
+++ /dev/null
@@ -1,8 +0,0 @@
-/home/steve/tmp/Final/141160029李向阳/solution_4.py
-/home/steve/tmp/Final/141160029李向阳/#solution_4.py#
-/home/steve/tmp/Final/141160029李向阳/solution_3.py
-/home/steve/tmp/Final/141160029李向阳/#solution_3.py#
-/home/steve/tmp/Final/141160029李向阳/solution_2.py
-/home/steve/tmp/Final/141160029李向阳/#solution_2.py#
-/home/steve/tmp/Final/141160029李向阳/solution_1.py
-/home/steve/tmp/Final/141160029李向阳/#solution_1.py#
diff --git a/.emacs.d/auto-save-list/.saves-1187-steve~ b/.emacs.d/auto-save-list/.saves-1187-steve~
deleted file mode 100644
index 893dee7..0000000
--- a/.emacs.d/auto-save-list/.saves-1187-steve~
+++ /dev/null
@@ -1,6 +0,0 @@
-/home/steve/Code/env_model/Model.py
-/home/steve/Code/env_model/#Model.py#
-/home/steve/Code/env_model/DatabaseManager.py
-/home/steve/Code/env_model/#DatabaseManager.py#
-/home/steve/Code/env_model/sql.py
-/home/steve/Code/env_model/#sql.py#
diff --git a/.emacs.d/auto-save-list/.saves-12850-steve~ b/.emacs.d/auto-save-list/.saves-12850-steve~
deleted file mode 100644
index 94b5090..0000000
--- a/.emacs.d/auto-save-list/.saves-12850-steve~
+++ /dev/null
@@ -1,2 +0,0 @@
-/home/steve/Dropbox/Courses/Computer Networks/lab/lab-1-wireshark.txt
-/home/steve/Dropbox/Courses/Computer Networks/lab/#lab-1-wireshark.txt#
diff --git a/.emacs.d/auto-save-list/.saves-1490-steve~ b/.emacs.d/auto-save-list/.saves-1490-steve~
deleted file mode 100644
index 550b8ed..0000000
--- a/.emacs.d/auto-save-list/.saves-1490-steve~
+++ /dev/null
@@ -1,4 +0,0 @@
-/home/steve/Code/env_model/main.py
-/home/steve/Code/env_model/#main.py#
-/home/steve/Code/env_model/Model.py
-/home/steve/Code/env_model/#Model.py#
diff --git a/.emacs.d/auto-save-list/.saves-2594-steve~ b/.emacs.d/auto-save-list/.saves-2594-steve~
deleted file mode 100644
index 5152968..0000000
--- a/.emacs.d/auto-save-list/.saves-2594-steve~
+++ /dev/null
@@ -1,2 +0,0 @@
-/home/steve/.emacs.d/init.el
-/home/steve/.emacs.d/#init.el#
diff --git a/.emacs.d/auto-save-list/.saves-4830-steve~ b/.emacs.d/auto-save-list/.saves-4830-steve~
deleted file mode 100644
index ffcd50d..0000000
--- a/.emacs.d/auto-save-list/.saves-4830-steve~
+++ /dev/null
@@ -1,2 +0,0 @@
-/home/steve/tmp/review/Kensington_Hotel_Saipan/ctrip.py
-/home/steve/tmp/review/Kensington_Hotel_Saipan/#ctrip.py#
diff --git a/.emacs.d/auto-save-list/.saves-655-steve~ b/.emacs.d/auto-save-list/.saves-655-steve~
deleted file mode 100644
index 550b8ed..0000000
--- a/.emacs.d/auto-save-list/.saves-655-steve~
+++ /dev/null
@@ -1,4 +0,0 @@
-/home/steve/Code/env_model/main.py
-/home/steve/Code/env_model/#main.py#
-/home/steve/Code/env_model/Model.py
-/home/steve/Code/env_model/#Model.py#
diff --git a/.emacs.d/auto-save-list/.saves-833-steve~ b/.emacs.d/auto-save-list/.saves-833-steve~
deleted file mode 100644
index a91f696..0000000
--- a/.emacs.d/auto-save-list/.saves-833-steve~
+++ /dev/null
@@ -1,2 +0,0 @@
-/home/steve/Code/env_model/main.py
-/home/steve/Code/env_model/#main.py#
diff --git a/.emacs.d/auto-save-list/.saves-859-steve~ b/.emacs.d/auto-save-list/.saves-859-steve~
deleted file mode 100644
index cb085fa..0000000
--- a/.emacs.d/auto-save-list/.saves-859-steve~
+++ /dev/null
@@ -1,2 +0,0 @@
-/home/steve/tmp/review/ctrip/ctrip.py
-/home/steve/tmp/review/ctrip/#ctrip.py#
diff --git a/.emacs.d/custom.el~ b/.emacs.d/custom.el~
deleted file mode 100644
index 18431b0..0000000
--- a/.emacs.d/custom.el~
+++ /dev/null
@@ -1,21 +0,0 @@
-;;; company --- All custom configuration
-
-;;; Commentary:
-
-;;; Code:
-
-(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.
- '(inhibit-startup-screen t)
- '(package-selected-packages
- (quote
- (slime evil window-numbering scala-mode oceanic-theme neotree helm flycheck expand-region evil-leader company))))
-(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.
- )
diff --git a/.emacs.d/init.el~ b/.emacs.d/init.el~
deleted file mode 100644
index 99dffce..0000000
--- a/.emacs.d/init.el~
+++ /dev/null
@@ -1,70 +0,0 @@
-;;; package --- My .emacs.d init. 2017.12.12
-;;; Commentary:
-;; -*- coding: utf-8 -*-
-
-;;; Code:
-
-;; Base config
-
-;; 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)
-(setq debug-on-error t)
-
-;; Path
-(add-to-list 'load-path (expand-file-name "lisp" user-emacs-directory))
-
-(menu-bar-mode -1)
-(tool-bar-mode -1)
-(scroll-bar-mode -1)
-(blink-cursor-mode -1)
-
-
-;; Line number
-;; (global-linum-mode 1)
-;; Disable visual bell
-(setq ring-bell-function 'ignore)
-;; Transparent
-;;(set-frame-parameter (selected-frame) 'alpha '(85 . 50))
-;;(add-to-list 'default-frame-alist '(alpha . (85 . 50)))
-
-;; Personal information
-(setq user-full-name "李向阳 141160029"
- user-mail-address "me@xiangyangli.com")
-
-;; Bootstrap
-(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
-
-;; (setq emacs-load-start-time (current-time))
-
-(let ((file-name-handler-alist nil))
- (require 'init-elpa)
- (require 'init-evil)
- (require 'init-org)
- (require 'init-program-basic)
- (require 'init-company)
- (require 'init-flycheck)
- (require 'init-expand-region)
- (require 'init-helm)
- (require 'init-neotree)
- (require 'init-window-numbering))
-
-;; Theme
-(load-theme 'misterioso t)
-;; Make highlight color differ from the highlight line
-
-;; Highlight current line, and keep syntax hightlight(:interit nil)
-(when window-system
- (global-hl-line-mode))
-(set-face-attribute 'hl-line nil :inherit nil :background "gray13")
-
-;;----------------------------------------------------------------------------
-;; Variables configured via the interactive 'customize' interface
-;;----------------------------------------------------------------------------
-(when (file-exists-p custom-file)
- (load custom-file))
-
-(provide 'init)
-;;; init.el ends here
diff --git a/.emacs.d/lisp/init-company.el~ b/.emacs.d/lisp/init-company.el~
deleted file mode 100644
index e69de29..0000000
--- a/.emacs.d/lisp/init-company.el~
+++ /dev/null
diff --git a/.emacs.d/lisp/init-elpa.el~ b/.emacs.d/lisp/init-elpa.el~
deleted file mode 100644
index e69de29..0000000
--- a/.emacs.d/lisp/init-elpa.el~
+++ /dev/null
diff --git a/.emacs.d/lisp/init-evil.el~ b/.emacs.d/lisp/init-evil.el~
deleted file mode 100644
index 6e3ecbd..0000000
--- a/.emacs.d/lisp/init-evil.el~
+++ /dev/null
@@ -1,47 +0,0 @@
-;;; init-evil --- All config of evil-mode
-
-;;; Commentary:
-
-;;; Code:
-
-(package-install 'evil)
-;; Evil leader, more evil
-(global-evil-leader-mode)
-(require 'evil)
-(evil-mode 1)
-
-;; TODO function and keybinding to open file in new window
-;; TODO combined keybindings
-
-(evil-leader/set-leader ";")
-(evil-leader/set-key
- "ss" 'evil-scroll-line-down
- "s" 'save-buffer
- "c" 'execute-c-program
- "e" 'find-file
- "b" 'switch-to-buffer
- "q" 'quit-window
- "e" 'er/expand-region
- "f" 'google-search
- "t" 'test-function
-
- ;; switch window
- "0" 'select-window-0
- "1" 'select-window-1
- "2" 'select-window-2
- "3" 'select-window-3
- "4" 'select-window-4
- "5" 'select-window-5
- "6" 'select-window-6
- "7" 'select-window-7
- "8" 'select-window-8
- "9" 'select-window-9)
-
-(defun google-search ()
- (interactive)
- (let (url)
- (setq url (read-string "Enter search content:"))
- (browse-url-firefox (concat "https://www.google.com/search?q=" url))))
-
-(provide 'init-evil)
-;;; init-evil ends here
diff --git a/.emacs.d/lisp/init-expand-region.el~ b/.emacs.d/lisp/init-expand-region.el~
deleted file mode 100644
index fffd943..0000000
--- a/.emacs.d/lisp/init-expand-region.el~
+++ /dev/null
@@ -1,8 +0,0 @@
-;;; expand-region --- Configuration
-
-;;; Commentary:
-
-;;; Code:
-
-(provide 'init-expand-region)
-;;; init-expand-region ends here
diff --git a/.emacs.d/lisp/init-flycheck.el~ b/.emacs.d/lisp/init-flycheck.el~
deleted file mode 100644
index d124711..0000000
--- a/.emacs.d/lisp/init-flycheck.el~
+++ /dev/null
@@ -1,13 +0,0 @@
-;;; flycheck --- All flycheck configuration
-
-;;; Commentary:
-
-;;; Code:
-
-(package-install 'flycheck)
-
-(global-flycheck-mode)
-(setq flycheck-check-syntax-automatically '(mode-enabled save))
-
-(provide 'init-flycheck)
-;;; init-flycheck ends here
diff --git a/.emacs.d/lisp/init-helm.el~ b/.emacs.d/lisp/init-helm.el~
deleted file mode 100644
index 0353c64..0000000
--- a/.emacs.d/lisp/init-helm.el~
+++ /dev/null
@@ -1,15 +0,0 @@
-;;; helm --- Configuration
-
-;;; Commentary:
-
-;;; Code:
-
-(require 'helm-config)
-
-(global-set-key (kbd "M-x") 'helm-M-x)
-(global-set-key (kbd "C-x C-p") 'helm-find-files)
-
-(helm-mode 1)
-
-(provide 'init-helm)
-;;; init-helm ends here
diff --git a/.emacs.d/lisp/init-neotree.el~ b/.emacs.d/lisp/init-neotree.el~
deleted file mode 100644
index c035d14..0000000
--- a/.emacs.d/lisp/init-neotree.el~
+++ /dev/null
@@ -1,11 +0,0 @@
-;;; neotree --- Configuration
-
-;;; Commentary:
-
-;;; Code:
-
-(global-unset-key (kbd "C-e"))
-(global-set-key (kbd "C-e") 'neotree-toggle)
-
-(provide 'init-neotree)
-;;; init-neotree ends here
diff --git a/.emacs.d/lisp/init-org.el~ b/.emacs.d/lisp/init-org.el~
deleted file mode 100644
index bc818e9..0000000
--- a/.emacs.d/lisp/init-org.el~
+++ /dev/null
@@ -1,55 +0,0 @@
-;;; org --- All configuration of org-mode
-
-;;; Commentary:
-;; Mostly the pdf export configuration
-
-;;; Code:
-
-;; active Babel languages
-(org-babel-do-load-languages
- 'org-babel-load-languages
- '((sql . t)))
-;; add additional languages with '((language . t)))
-
-(setq org-latex-classes
- '(("article"
- "
- \\documentclass[11pt]{article}
- \\usepackage{xeCJK}
- \\usepackage{indentfirst}
- \\usepackage{amsmath}
- \\setlength{\\parindent}{2em}
- \\setCJKmainfont{SimSun}
- \\numberwithin{equation}{section}
- \\newtheorem{Theorem}{定理}[section]
- \\newtheorem{Definition}[Theorem]{定义}
- \\newtheorem{Lemma}[Theorem]{引理}
- \\newtheorem{Corollary}[Theorem]{推论}
- \\topmargin=-0.45in
- \\evensidemargin=0in
- \\oddsidemargin=0in
- \\textwidth=6.5in
- \\textheight=9.0in
- \\headsep=0.25in
-
- \\linespread{1.1}
- "
- ("\\section{%s}" . "\\section*{%s}")
- ("\\subsection{%s}" . "\\subsection*{%s}")
- ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
- ("\\paragraph{%s}" . "\\paragraph*{%s}")
- ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
- ))
-;; Use XeLaTex
-(setq org-latex-pdf-process
- '("xelatex -interaction nonstopmode -output-directory %o %f"
- "xelatex -interaction nonstopmode -output-directory %o %f"
- "xelatex -interaction nonstopmode -output-directory %o %f"))
-
-(setq org-log-done t)
-(setq org-agenda-files (list "~/org/work.org"
- "~/org/school.org"
- "~/org/home.org"
- "~/42/Personal/Plan/plan.org"))
-(provide 'init-org)
-;;; init-org ends here
diff --git a/.emacs.d/lisp/init-program-basic.el~ b/.emacs.d/lisp/init-program-basic.el~
deleted file mode 100644
index 04266aa..0000000
--- a/.emacs.d/lisp/init-program-basic.el~
+++ /dev/null
@@ -1,53 +0,0 @@
-;;; program-basic --- Some basic configuration
-
-;;; Commentary:
-;; None
-
-;;; Code:
-
-(setq-default c-basic-offset 4
- tab-width 4
- indent-tabs-mode t)
-
-(defun execute-c-program ()
- "Complie current c file and run it."
- (interactive)
- (save-buffer)
- (defvar foo)
- (setq foo (concat
- "gcc " (include-source-file (buffer-name)) " -o " (buffer-name) ".out && ./" (buffer-name) ".out" ))
- (shell-command foo))
-
-(defun include-source-file (file-path)
- "Get transfer all include header file from FILE-PATH to source file(string)."
- (let (content)
- (setq content (format "%s" (get-c-source-file (get-string-from-file file-path))))
- (if (string= nil content)
- file-path
- (substring content 1 -1))))
-
-(defun get-c-source-file (content)
- "Get the header list of a string CONTENT, for instant a .c file."
- (defun header-to-source (header)
- "Whole line of header"
- (replace-regexp-in-string "[.]h" ".c " (substring header 10 -1)))
- (let (value)
- (dolist (element (split-string content "\n" t) value)
- (if (string-prefix-p "#include \"" element)
- (setq value (cons (header-to-source element) value))))))
-
-
-(defun read-lines (file-path)
- "Return a list of lines of a file at FILE-PATH."
- (with-temp-buffer
- (insert-file-contents file-path)
- (split-string (buffer-string) "\n" t)))
-
-(defun get-string-from-file (file-path)
- "Return FILE-PATH's file content in list."
- (with-temp-buffer
- (insert-file-contents file-path)
- (buffer-string)))
-
-(provide 'init-program-basic)
-;;; init-program-basic ends here
diff --git a/.emacs.d/lisp/init-slime.el~ b/.emacs.d/lisp/init-slime.el~
deleted file mode 100644
index 28258b9..0000000
--- a/.emacs.d/lisp/init-slime.el~
+++ /dev/null
@@ -1,13 +0,0 @@
-;;; slime --- All slime configuration
-
-;;; Commentary:
-
-;;; Code:
-
-(package-install 'slime)
-
-(setq inferior-lisp-program "/opt/sbcl/bin/sbcl")
-(setq slime-contribs '(slime-fancy))
-
-(provide 'init-slime)
-;;; init-slime ends here
diff --git a/.emacs.d/lisp/init-window-numbering.el~ b/.emacs.d/lisp/init-window-numbering.el~
deleted file mode 100644
index cb3ccc8..0000000
--- a/.emacs.d/lisp/init-window-numbering.el~
+++ /dev/null
@@ -1,3 +0,0 @@
-;;; window-numbering --- All configuration of window-numbering
-
-;;; C