Compare commits
221 commits
lsp_experi
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| b8adef76fb | |||
| 53aa91408c | |||
| 06208d5491 | |||
| 423acecb38 | |||
| 706b396e1c | |||
| b79d782623 | |||
| 8ba598127b | |||
| 4aeb92eb6f | |||
| c3a188defe | |||
| 0c18e02686 | |||
| 6a57cbfd1f | |||
| 015ed00b0f | |||
| 980ce6750b | |||
| 28b6168110 | |||
| c809f480bd | |||
| 3591e5704e | |||
| e6e5b5e461 | |||
| a79987f30f | |||
| 3f93a19d4b | |||
| 80b3e4dbc1 | |||
| 377a5cadff | |||
| adab1147e0 | |||
| 7f901b23ae | |||
| a731bab651 | |||
| 2572e8c221 | |||
| 6c24da4503 | |||
| f2dc1fe496 | |||
| 49a5164f45 | |||
| 22c029b2f4 | |||
| ff740ce08e | |||
| 1a21781fba | |||
| d3dc9465dd | |||
| f5ef8d68c5 | |||
| 0b57fa79b5 | |||
| c47c5a5185 | |||
| 17e062e07f | |||
| ede533e792 | |||
| 3853d9d247 | |||
| c8fa26b07b | |||
| 7252361ab1 | |||
| 275d07b961 | |||
| e692a9de93 | |||
| 28dae3bfeb | |||
| cea6f3f2c0 | |||
| 0e722c06b5 | |||
| 34e4462f1b | |||
| 2023ec08b3 | |||
| 7285b8750e | |||
| ad0adbc726 | |||
| 75bda91171 | |||
| a68f566cd9 | |||
| a5efd66ec7 | |||
| 40d9146a45 | |||
| d0657174dc | |||
| 3ad176fbf9 | |||
| 6aaae92c53 | |||
| 934c375c34 | |||
| 1521fcb13e | |||
| 21fbc47a8f | |||
| 1a99cb8ccb | |||
| ce1c827f4c | |||
| 62148f96ca | |||
| 8b1d672215 | |||
| e837ce7551 | |||
| f82e59591e | |||
| 83dc765086 | |||
| 1022956e46 | |||
| 32ddb062c0 | |||
| bbffcd8d2b | |||
| 6127374888 | |||
| 8a5527c2d4 | |||
| c5cebd2147 | |||
| 5ca1559c20 | |||
| 3c24cac0c1 | |||
|
|
b0b017251c | ||
| 7c39432564 | |||
| 29f8a2b08b | |||
| ddc622f270 | |||
| cb018ca96b | |||
| caf08093dd | |||
| 4233409d50 | |||
| 55e765911e | |||
| d3f6a04e9b | |||
| c31bd5ab5b | |||
| edee35724e | |||
| f2cfe8035c | |||
| 954196d061 | |||
| d5f79bf639 | |||
| 78afc078ff | |||
| 5ef08b39b6 | |||
| 584a0b1b7c | |||
| 5395706577 | |||
| 2be3a79aed | |||
| f6c14e7caa | |||
| d757ce44a8 | |||
| 122f1f5186 | |||
| e02a1990aa | |||
| 074c5fe0b1 | |||
| 1b6619a978 | |||
| 6e52096e2d | |||
| 012e960510 | |||
| 6f306b4ea5 | |||
| 091b5fbda2 | |||
| 31da5498b6 | |||
| 752734c381 | |||
| 1449ae0e5f | |||
| f1eed76f1b | |||
| cdcd577939 | |||
| 69010af86e | |||
| c748fb94c4 | |||
| 8b3f426ae1 | |||
| 8732e36160 | |||
| ee7073ea67 | |||
| 0482e48c7f | |||
| 2c29e77132 | |||
| f121ec0330 | |||
| 9d84faf97a | |||
| f44190a45d | |||
| 1475b4acb8 | |||
| 832bc40d81 | |||
| 12b33b1f49 | |||
| 53dd2a9084 | |||
| 43c75a29e2 | |||
| 1549038f73 | |||
| 49e26e5568 | |||
| 6e1ed0ebb6 | |||
| 17515a8377 | |||
| 393bace7cf | |||
| 35102de7f5 | |||
| df5d034907 | |||
| 22a827592d | |||
| 801188ed90 | |||
| 7329b044f3 | |||
| 9541cfbf44 | |||
| b8ef2937f3 | |||
| a6c81d05ba | |||
| 00d40a2d5a | |||
| bd3f737477 | |||
| db266f3ece | |||
| d184007b9b | |||
| 3bf48f5927 | |||
| ef04adcfd9 | |||
| 0db6d1753e | |||
| 0f9db243ad | |||
| 27f8caf0a5 | |||
| 110f3c5dd9 | |||
| 629f3da53b | |||
| a1a3856486 | |||
| 51f4498c99 | |||
| ff9ed0382d | |||
| 54491b0c06 | |||
| a4f7828259 | |||
| 5ebe6422f8 | |||
| ffcbf8ec41 | |||
| 0a2148f8df | |||
| dd2692ca6e | |||
| c47edf6f18 | |||
| ff49b4958c | |||
| d37d733f5b | |||
| 1b386ae27f | |||
| 68d9e58c51 | |||
| 667b311e32 | |||
| 70bac71039 | |||
| a4040e4eef | |||
| b4fbaac91f | |||
| 64c11c968c | |||
| 4aed3d38dd | |||
| 808a7215ed | |||
| 1758fe8906 | |||
| a581a36f55 | |||
| f1f6b38b6c | |||
| d7dd8c6af1 | |||
| fe97daac36 | |||
| 0ef6bf0f3c | |||
| 94d12e2fdc | |||
| a41c688aea | |||
| 012444d41b | |||
| f90a75154e | |||
| 342307ce23 | |||
| 8014257b46 | |||
| 3c94dc873e | |||
| c5d49f0e07 | |||
| 3867667e69 | |||
| 381db3c3bd | |||
| a9cae79276 | |||
| e17468eece | |||
| 65a0a832b4 | |||
| 9d72964ffa | |||
| 8e6aaadd92 | |||
| bc3bddf4a8 | |||
| f0bd80917c | |||
| b0b2702b38 | |||
| f44990e0b0 | |||
| deb2961644 | |||
| 6efd6536e9 | |||
|
|
673996444f | ||
|
|
4724e18f76 | ||
|
|
15dca42666 | ||
|
|
91ab7f3e31 | ||
|
|
ea7d82619c | ||
|
|
f8e9110126 | ||
|
|
586aa741df | ||
|
|
e9b132d7e8 | ||
|
|
5b39426ab9 | ||
|
|
6b6601b361 | ||
|
|
21ac5f6b78 | ||
|
|
10d45c2d8c | ||
|
|
6ecbdb89dc | ||
|
|
c22f29ee02 | ||
|
|
ae71fc459c | ||
|
|
3ceea10587 | ||
|
|
597e00a584 | ||
|
|
831031aa3a | ||
|
|
dc0284d45f | ||
|
|
ec26fd8237 | ||
|
|
fad0df1881 | ||
|
|
e1abda326f | ||
|
|
5d8c9ad8e5 | ||
|
|
a79e204d37 | ||
|
|
2cf00a921b | ||
|
|
0f6f65b198 |
21 changed files with 2744 additions and 1208 deletions
26
.gitignore
vendored
Normal file
26
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
custom.el
|
||||
backups
|
||||
eshell
|
||||
elpaca
|
||||
|
||||
eln-cache
|
||||
elpa
|
||||
org-roam.db
|
||||
transient
|
||||
|
||||
# projectile
|
||||
projectile*
|
||||
|
||||
# savehist file
|
||||
history
|
||||
|
||||
# recentf file
|
||||
recentf
|
||||
|
||||
session*
|
||||
|
||||
# .org converted files
|
||||
config*.el
|
||||
|
||||
# Tramp connection file
|
||||
tramp
|
||||
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -1,3 +0,0 @@
|
|||
[submodule "extra/sunrise-commander"]
|
||||
path = extra/sunrise-commander
|
||||
url = https://github.com/escherdragon/sunrise-commander
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
C-M-Space : smartparens wrapping
|
||||
C-c C-c : calculator (see init.el)
|
||||
C-h k <key-sequence>: lookup key sequence
|
||||
C-x 0 : close current window
|
||||
C-q <tab> : insert a <tab>
|
||||
M-x (un)tabify : (replace) tabs
|
||||
M-x describe-bindings : list of all mapped keys/commands
|
||||
M-p : fill-paragraph, works for doxygen as well
|
||||
2121
config.org
2121
config.org
File diff suppressed because it is too large
Load diff
1608
config_old.org
Normal file
1608
config_old.org
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1,8 +0,0 @@
|
|||
;; Add irony as flycheck hook
|
||||
(eval-after-load 'flycheck
|
||||
'(add-hook 'flycheck-mode-hook 'flycheck-irony-setup))
|
||||
|
||||
;; Set tab to autocomplete or indent depending on context
|
||||
(global-set-key (kbd "<tab>") 'company-indent-or-complete-common)
|
||||
|
||||
(provide 'setup-autocompletion)
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Python ;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
(require 'py-autopep8)
|
||||
(elpy-enable)
|
||||
|
||||
(setq elpy-modules (delq 'elpy-module-flycheck elpy-modules))
|
||||
(add-hook 'elpy-mode-hook 'flycheck-mode)
|
||||
(add-hook 'elpy-mode-hook 'py-autopep8-enable-on-save)
|
||||
|
||||
(provide 'setup-coding)
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
(require 'org)
|
||||
|
||||
(define-key global-map "\C-cl" 'org-store-link)
|
||||
(define-key global-map "\C-ca" 'org-agenda)
|
||||
|
||||
;; when ending TODO (C-C C-t) end with a note + timestamp
|
||||
(setq org-log-done 'note)
|
||||
;; Specify root dir to search for agenda files, TODOs, ...
|
||||
(setq org-agenda-files '("~/org"))
|
||||
;; Add extra states for keywords
|
||||
(setq org-todo-keywords
|
||||
'((sequence "TODO" "IN-PROGRESS" "WAITING" "DONE")))
|
||||
|
||||
(setq org-export-with-sub-superscripts nil)
|
||||
|
||||
;; Preserve indentation in SRC blocks
|
||||
(setq org-src-preserve-indentation t)
|
||||
|
||||
;; Specify which languages are allowed to run inside org-mode
|
||||
(org-babel-do-load-languages
|
||||
'org-babel-load-languages '(
|
||||
(ditaa . t))
|
||||
)
|
||||
|
||||
;; Tell org where to look for ditaa
|
||||
(setq org-ditaa-jar-path "/usr/share/java/ditaa/ditaa-0_10.jar")
|
||||
|
||||
(provide 'setup-org)
|
||||
18
early-init.el
Normal file
18
early-init.el
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
;;; early-init.el --- Early Init -*- lexical-binding: t; -*-
|
||||
|
||||
;;; Commentary:
|
||||
;; Early init configuration for Emacs Solo
|
||||
;;
|
||||
|
||||
;;; Code:
|
||||
|
||||
|
||||
;; Only care about errors in *Messages* buffer
|
||||
(setq warning-minimum-level :error)
|
||||
|
||||
;; We control when packages are enabled
|
||||
(setq package-enable-at-startup nil)
|
||||
|
||||
(provide 'early-init)
|
||||
|
||||
;;; early-init.el ends here
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit cf8305a149a321d028858057e7a7c92f0038a06a
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 64 KiB |
53
init.el
53
init.el
|
|
@ -1,39 +1,28 @@
|
|||
;; IMPORTANT: add (require 'package), else package-archives is not declared (void-variable)
|
||||
(require 'package)
|
||||
;;; init.el --- Init -*- lexical-binding: t; -*-
|
||||
|
||||
(setq package-enable-at-startup nil)
|
||||
|
||||
;; add melpa-stable to package-archives
|
||||
(add-to-list 'package-archives
|
||||
'("melpa-stable" . "https://stable.melpa.org/packages/") t)
|
||||
(add-to-list 'package-archives
|
||||
'("melpa" . "http://melpa.milkbox.net/packages/") t)
|
||||
;;; Commentary:
|
||||
;;; Load init files
|
||||
|
||||
;; MUST be called after package-archives is updated
|
||||
(package-initialize)
|
||||
|
||||
;;; Bootstrapping use-package
|
||||
(unless (package-installed-p 'use-package)
|
||||
(package-refresh-contents)
|
||||
(package-install 'use-package))
|
||||
;;; Code:
|
||||
|
||||
;;; This is the actual config file. It is omitted if it doesn't exist so emacs won't refuse to launch.
|
||||
(when (file-readable-p "~/.emacs.d/config.org")
|
||||
(org-babel-load-file (expand-file-name "~/.emacs.d/config.org")))
|
||||
;;; Increase garbage collection threshold during init but leave it to the default value after
|
||||
;;; There are a LOT of articles/sites/... discussing this:
|
||||
;;; https://bling.github.io/blog/2016/01/18/why-are-you-changing-gc-cons-threshold/
|
||||
;;; https://jonnay.github.io/emagicians-starter-kit/Emagician-Base.html
|
||||
;;; ...
|
||||
(let ((gc-cons-threshold most-positive-fixnum))
|
||||
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
||||
;; This is the actual config file. It is omitted if it doesn't exist so emacs won't refuse to launch.
|
||||
(defvar my-config-file (expand-file-name "config.org" user-emacs-directory))
|
||||
|
||||
(when (file-readable-p my-config-file)
|
||||
(org-babel-load-file (expand-file-name my-config-file)))
|
||||
|
||||
(load custom-file :no-error-if-file-is-missing)
|
||||
)
|
||||
|
||||
(provide 'init)
|
||||
(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.
|
||||
'(helm-gtags-auto-update t)
|
||||
'(package-selected-packages
|
||||
(quote
|
||||
(elpy linum-relative avy flycheck-irony irony-eldoc company-irony company-c-headers flycheck magit py-autopep8 multiple-cursors helm-gtags helm-swoop zygospore yasnippet volatile-highlights use-package undo-tree smartparens smart-mode-line monokai-theme iedit helm expand-region dashboard comment-dwim-2))))
|
||||
(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.
|
||||
)
|
||||
|
||||
;;; init.el ends here
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
#name : #ifndef XXX; #define XXX; #endif
|
||||
# key: oncekl
|
||||
# --
|
||||
#ifndef ${1:`(upcase (file-name-nondirectory (file-name-sans-extension (or (buffer-file-name) ""))))`_H_}
|
||||
#define $1
|
||||
|
||||
$0
|
||||
|
||||
#endif /* $1 */
|
||||
6
snippets/c-mode/define
Normal file
6
snippets/c-mode/define
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: Make a define
|
||||
# key: def
|
||||
# --
|
||||
|
||||
#define ${1:mydefine$(upcase yas-text)} $2
|
||||
|
|
@ -3,6 +3,6 @@
|
|||
# key: fori
|
||||
# --
|
||||
|
||||
for (${1:int i = 0}; ${2:i < N}; ${3:++i}) {
|
||||
for (${1:size_t i = 0}; ${2:i < N}; ${3:++i}) {
|
||||
$0
|
||||
}
|
||||
10
snippets/c-mode/header
Normal file
10
snippets/c-mode/header
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#name : #ifndef XXX; #define XXX; #endif
|
||||
# key: header
|
||||
# --
|
||||
|
||||
#ifndef ${1:_`(upcase (file-name-nondirectory (file-name-sans-extension (or (buffer-file-name) ""))))`_H_}
|
||||
#define $1
|
||||
|
||||
$0
|
||||
|
||||
#endif /* $1 */
|
||||
6
snippets/c-mode/kaboom
Normal file
6
snippets/c-mode/kaboom
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: kaboom
|
||||
# key: kb
|
||||
# --
|
||||
|
||||
char (*__kaboom)[sizeof($1)] = 1;
|
||||
8
snippets/org-mode/emacs-lisp-source-block
Normal file
8
snippets/org-mode/emacs-lisp-source-block
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: Start emacs source block
|
||||
# key: se
|
||||
# --
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
${1}
|
||||
#+END_SRC
|
||||
6
snippets/org-mode/filetags
Normal file
6
snippets/org-mode/filetags
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: Filetags
|
||||
# key: ft
|
||||
# --
|
||||
|
||||
#+FILETAGS: :$1:
|
||||
8
snippets/org-mode/source_block_emacs
Normal file
8
snippets/org-mode/source_block_emacs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: Org source code block
|
||||
# key: s
|
||||
# --
|
||||
|
||||
#+BEGIN_SRC
|
||||
${1}
|
||||
#+END_SRC
|
||||
10
snippets/text-mode/git-commit-message-before-after
Normal file
10
snippets/text-mode/git-commit-message-before-after
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: Git commit message template
|
||||
# key: bac
|
||||
# --
|
||||
|
||||
Before this commit,
|
||||
${1}
|
||||
|
||||
After this commit,
|
||||
${2}
|
||||
Loading…
Add table
Add a link
Reference in a new issue