Merge pull request #7 from laurensmiers/unclutter
Unclutter/refresh config
This commit is contained in:
commit
b0b017251c
9 changed files with 2385 additions and 1371 deletions
21
.gitignore
vendored
Normal file
21
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
custom.el
|
||||
backups
|
||||
eshell
|
||||
elpaca
|
||||
|
||||
# projectile
|
||||
projectile*
|
||||
|
||||
# savehist file
|
||||
history
|
||||
|
||||
# recentf file
|
||||
recentf
|
||||
|
||||
session*
|
||||
|
||||
# .org converted files
|
||||
config*.el
|
||||
|
||||
# Tramp connection file
|
||||
tramp
|
||||
2008
config.org
2008
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 +1,9 @@
|
|||
(setq package-enable-at-startup nil)
|
||||
|
||||
|
||||
;; Local Variables:
|
||||
;; no-byte-compile: t
|
||||
;; no-native-compile: t
|
||||
;; no-update-autoloads: t
|
||||
;; End:
|
||||
|
||||
|
|
|
|||
13
init.el
13
init.el
|
|
@ -4,14 +4,13 @@
|
|||
;;; 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 config-file (expand-file-name "config.org" user-emacs-directory))
|
||||
(defvar project-file (expand-file-name "project.org" user-emacs-directory))
|
||||
(defvar my-config-file (expand-file-name "config.org" user-emacs-directory))
|
||||
|
||||
(when (file-readable-p config-file)
|
||||
(org-babel-load-file (expand-file-name config-file)))
|
||||
(when (file-readable-p my-config-file)
|
||||
(org-babel-load-file (expand-file-name my-config-file)))
|
||||
|
||||
;; If it exists, load some project-specific configurations.
|
||||
(when (file-readable-p project-file)
|
||||
(org-babel-load-file (expand-file-name project-file)))
|
||||
(when (file-readable-p custom-file)
|
||||
(load custom-file))
|
||||
)
|
||||
|
|
|
|||
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
|
||||
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: Lisp source code block
|
||||
# key: s>
|
||||
# --
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
${1}
|
||||
#+END_SRC
|
||||
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: Start emacs source block
|
||||
# key: se>
|
||||
# --
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
${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