summaryrefslogtreecommitdiff
path: root/.emacs.d/lisp
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/lisp')
-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
11 files changed, 0 insertions, 218 deletions
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