dotfiles

personal dotfiles
git clone anongit@rnpnr.xyz:dotfiles.git
Log | Files | Refs | Feed | Submodules

Commit: f27967c462ae5d08a387eca21064a667eb3bab40
Author: 0x766F6964
Date:   Sat, 28 Sep 2019 08:41:45 -0600

initial commit

Diffstat:
A.emacs.d/.gitignore | 4++++
A.emacs.d/config.org | 84+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A.emacs.d/init.el | 30++++++++++++++++++++++++++++++
3 files changed, 118 insertions(+), 0 deletions(-)

diff --git a/.emacs.d/.gitignore b/.emacs.d/.gitignore @@ -0,0 +1,4 @@ +auto-save-list +config.el +elpa/ + diff --git a/.emacs.d/config.org b/.emacs.d/config.org @@ -0,0 +1,84 @@ +* Aethetics +** Theme +#+BEGIN_SRC emacs-lisp +(require 'nofrils-acme-theme) +(load-theme 'nofrils-acme t) +#+END_SRC + +** Remove graphics bars +#+BEGIN_SRC emacs-lisp +(tool-bar-mode -1) +(menu-bar-mode -1) +(scroll-bar-mode -1) +#+END_SRC + +* Keybinds +** Live Config Reload +#+BEGIN_SRC emacs-lisp + (defun config-reload () + "Reloads ~/.emacs.d/config.org at runtime" + (interactive) + (org-babel-load-file (expand-file-name "~/.emacs.d/config.org"))) + (global-set-key (kbd "C-c r") 'config-reload) +#+END_SRC + +* Programming +** C +#+BEGIN_SRC emacs-lisp + (require 'cc-mode) + (add-to-list 'c-mode-common-hook + (lambda () (setq c-syntactic-indentation nil))) +#+END_SRC + +** Git +#+BEGIN_SRC emacs-lisp + (use-package magit + :ensure t + :bind + ("M-g" . magit-status)) +#+END_SRC + +* Misc +** Autosave +#+BEGIN_SRC emacs-lisp +(setq make-backup-files nil) +(setq auto-save-default nil) +#+END_SRC + +** Async +#+BEGIN_SRC emacs-lisp + (use-package async + :ensure t + :init (dired-async-mode 1)) +#+END_SRC + +** Org-Mode +*** Common +#+BEGIN_SRC emacs-lisp + (setq org-src-tab-acts-natively t) + (setq org-confirm-babel-evaluate nil) +#+END_SRC + +*** Org-Bullets +#+BEGIN_SRC emacs-lisp + (use-package org-bullets + :ensure t + :config + (add-hook 'org-mode-hook (lambda () (org-bullets-mode)))) +#+END_SRC +*** Source Tags +Hitting tab after an "<el" in an org-mode file will create a template for elisp insertion. +#+BEGIN_SRC emacs-lisp + (add-to-list 'org-structure-template-alist + '("el" "#+BEGIN_SRC emacs-lisp\n?\n#+END_SRC")) +#+END_SRC + +** UTF-8 +Only use UTF-8, as god intended +#+BEGIN_SRC emacs-lisp + (setq locale-coding-system 'utf-8) + (set-terminal-coding-system 'utf-8) + (set-keyboard-coding-system 'utf-8) + (set-selection-coding-system 'utf-8) + (prefer-coding-system 'utf-8) +#+END_SRC diff --git a/.emacs.d/init.el b/.emacs.d/init.el @@ -0,0 +1,30 @@ +;;; Package Archives +(require 'package) +(setq package-enable-at-startup nil) + +(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/") + ("melpa" . "https://melpa.org/packages/") + ("org" . "https://orgmode.org/elpa/"))) +(package-initialize) + +;;; Bootstrap use-package +(unless (package-installed-p 'use-package) + (package-refresh-contents) + (package-install 'use-package)) + +;;; Load actual config file +(when (file-readable-p "~/.emacs.d/config.org") + (org-babel-load-file (expand-file-name "~/.emacs.d/config.org"))) + +(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. + '(package-selected-packages (quote (magit org-bullets use-package)))) +(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. + '(default ((t (:family "Go Mono" :foundry " " :slant normal :weight normal :height 158 :width normal)))))