Compare commits
10 commits
master
...
lsp_experi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6c169b230e | ||
|
|
5792beb9ee | ||
|
|
71b5e34a9e | ||
|
|
593de2293d | ||
|
|
5559316d09 | ||
|
|
e411693eb0 | ||
|
|
348b36dafd | ||
|
|
57c0927448 | ||
|
|
fb94a22ec9 | ||
|
|
6e2fb64ec8 |
21 changed files with 1242 additions and 2744 deletions
26
.gitignore
vendored
26
.gitignore
vendored
|
|
@ -1,26 +0,0 @@
|
||||||
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
Normal file
3
.gitmodules
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "extra/sunrise-commander"]
|
||||||
|
path = extra/sunrise-commander
|
||||||
|
url = https://github.com/escherdragon/sunrise-commander
|
||||||
8
cheat-sheet.txt
Normal file
8
cheat-sheet.txt
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
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
1608
config_old.org
File diff suppressed because it is too large
Load diff
8
custom/setup-autocompletion.el
Normal file
8
custom/setup-autocompletion.el
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
;; 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)
|
||||||
11
custom/setup-coding.el
Normal file
11
custom/setup-coding.el
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
;; 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)
|
||||||
28
custom/setup-org.el
Normal file
28
custom/setup-org.el
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
(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)
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
;;; 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
extra/sunrise-commander
Submodule
1
extra/sunrise-commander
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit cf8305a149a321d028858057e7a7c92f0038a06a
|
||||||
BIN
img/dash_logo.png
Normal file
BIN
img/dash_logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
53
init.el
53
init.el
|
|
@ -1,28 +1,39 @@
|
||||||
;;; init.el --- Init -*- lexical-binding: t; -*-
|
;; IMPORTANT: add (require 'package), else package-archives is not declared (void-variable)
|
||||||
|
(require 'package)
|
||||||
|
|
||||||
|
(setq package-enable-at-startup nil)
|
||||||
|
|
||||||
;;; Commentary:
|
;; add melpa-stable to package-archives
|
||||||
;;; Load init files
|
(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)
|
||||||
|
|
||||||
|
;; MUST be called after package-archives is updated
|
||||||
|
(package-initialize)
|
||||||
|
|
||||||
;;; Code:
|
;;; Bootstrapping use-package
|
||||||
|
(unless (package-installed-p 'use-package)
|
||||||
|
(package-refresh-contents)
|
||||||
|
(package-install 'use-package))
|
||||||
|
|
||||||
;;; Increase garbage collection threshold during init but leave it to the default value after
|
;;; This is the actual config file. It is omitted if it doesn't exist so emacs won't refuse to launch.
|
||||||
;;; There are a LOT of articles/sites/... discussing this:
|
(when (file-readable-p "~/.emacs.d/config.org")
|
||||||
;;; https://bling.github.io/blog/2016/01/18/why-are-you-changing-gc-cons-threshold/
|
(org-babel-load-file (expand-file-name "~/.emacs.d/config.org")))
|
||||||
;;; 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)
|
(provide 'init)
|
||||||
|
(custom-set-variables
|
||||||
;;; init.el ends here
|
;; 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.
|
||||||
|
)
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,6 @@
|
||||||
# key: fori
|
# key: fori
|
||||||
# --
|
# --
|
||||||
|
|
||||||
for (${1:size_t i = 0}; ${2:i < N}; ${3:++i}) {
|
for (${1:int i = 0}; ${2:i < N}; ${3:++i}) {
|
||||||
$0
|
$0
|
||||||
}
|
}
|
||||||
9
plugins/yasnippet/c-mode/oncekl
Normal file
9
plugins/yasnippet/c-mode/oncekl
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
#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 */
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
# -*- mode: snippet -*-
|
|
||||||
# name: Make a define
|
|
||||||
# key: def
|
|
||||||
# --
|
|
||||||
|
|
||||||
#define ${1:mydefine$(upcase yas-text)} $2
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
#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 */
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
# -*- mode: snippet -*-
|
|
||||||
# name: kaboom
|
|
||||||
# key: kb
|
|
||||||
# --
|
|
||||||
|
|
||||||
char (*__kaboom)[sizeof($1)] = 1;
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
# -*- mode: snippet -*-
|
|
||||||
# name: Start emacs source block
|
|
||||||
# key: se
|
|
||||||
# --
|
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
|
||||||
${1}
|
|
||||||
#+END_SRC
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
# -*- mode: snippet -*-
|
|
||||||
# name: Filetags
|
|
||||||
# key: ft
|
|
||||||
# --
|
|
||||||
|
|
||||||
#+FILETAGS: :$1:
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
# -*- mode: snippet -*-
|
|
||||||
# name: Org source code block
|
|
||||||
# key: s
|
|
||||||
# --
|
|
||||||
|
|
||||||
#+BEGIN_SRC
|
|
||||||
${1}
|
|
||||||
#+END_SRC
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
# -*- 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