Merge pull request #7 from laurensmiers/unclutter

Unclutter/refresh config
This commit is contained in:
Laurens Miers 2024-09-24 19:16:51 +00:00 committed by Laurens Miers
commit b0b017251c
9 changed files with 2385 additions and 1371 deletions

21
.gitignore vendored Normal file
View 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

2074
config.org

File diff suppressed because it is too large Load diff

1608
config_old.org Normal file

File diff suppressed because it is too large Load diff

View file

@ -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
View file

@ -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
View file

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: Make a define
# key: def
# --
#define ${1:mydefine$(upcase yas-text)} $2

View file

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: Lisp source code block
# key: s>
# --
#+BEGIN_SRC emacs-lisp
${1}
#+END_SRC

View file

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: Start emacs source block
# key: se>
# --
#+BEGIN_SRC emacs-lisp
${1}
#+END_SRC

View file

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# name: Git commit message template
# key: bac
# --
Before this commit,
${1}
After this commit,
${2}