From ec7a5e89454f71d9300fa586159cf907b16fca77 Mon Sep 17 00:00:00 2001 From: AYM1607 Date: Sat, 30 Jan 2021 13:31:16 -0500 Subject: [PATCH] Finishes current configuration in org mode and automatic dumping. --- .gitignore | 56 ++++ Config.org | 927 +++++++++++++++++++++++++++++++++++++++++++++++++++++ init.el | 707 +++++++++++++++++++++++++++++----------- 3 files changed, 1510 insertions(+), 180 deletions(-) create mode 100644 .gitignore create mode 100644 Config.org diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8110c28 --- /dev/null +++ b/.gitignore @@ -0,0 +1,56 @@ +# Created by https://www.toptal.com/developers/gitignore/api/emacs +# Edit at https://www.toptal.com/developers/gitignore?templates=emacs + +### Emacs ### +# -*- mode: gitignore; -*- +*~ +\#*\# +/.emacs.desktop +/.emacs.desktop.lock +*.elc +auto-save-list +tramp +.\#* + +# Org-mode +.org-id-locations +*_archive +ltximg/** + +# flymake-mode +*_flymake.* + +# eshell files +/eshell/history +/eshell/lastdir + +# elpa packages +/elpa/ + +# reftex files +*.rel + +# AUCTeX auto folder +/auto/ + +# cask packages +.cask/ +dist/ + +# Flycheck +flycheck_*.el + +# server auth directory +/server/ + +# projectiles files +.projectile + +# directory configuration +.dir-locals.el + +# network security +/network-security.data + + +# End of https://www.toptal.com/developers/gitignore/api/emacs \ No newline at end of file diff --git a/Config.org b/Config.org new file mode 100644 index 0000000..b32486e --- /dev/null +++ b/Config.org @@ -0,0 +1,927 @@ +#+title AYM1607's Emacs configuration +#+PROPERTY: header-args:emacs-lisp :tangle ./init.el :results silent + +* Essentials + +#+begin_src emacs-lisp +;; Set custom file to be somewhere else. +(setq custom-file "~/.emacs.d/custom.el") +(load custom-file) + +;; Include packages stored locally. +(add-to-list 'load-path "~/.emacs.d/local-packages") + +(setq insert-directory-program "gls") + +;; Avoid asking confirmation when killing a buffer with a process. +(setq kill-buffer-query-functions nil) + +#+end_src + +** Package system setup +#+begin_src emacs-lisp +(require 'package) + +;; Specify repositories. +(setq package-archives '(("melpa" . "https://melpa.org/packages/") + ("org" . "https://orgmode.org/elpa/") + ("elpa" . "https://elpa.gnu.org/packages/"))) + +(package-initialize) +(unless package-archive-contents + (package-refresh-contents)) + +;; Install use-package if not present +(unless (package-installed-p 'use-package) + (package-install 'use-package)) + +(require 'use-package) +;; Avoid using :ensure t on every package installation. +(setq use-package-always-ensure t) + +#+end_src +* Basic UI Configuration +#+begin_src emacs-lisp + +(setq inhibit-startup-message t) + +;; Always start as a full frame. +(add-to-list 'default-frame-alist '(fullscreen . maximized)) + +;; Set right command key to meta. +(setq ns-right-command-modifier 'meta) + +(scroll-bar-mode -1) ;; Disable visible scrollbar. +(tool-bar-mode -1) ;; Disable the toolbar. +(tooltip-mode -1) ;; Disable tooltips. +(set-fringe-mode 10) ; Breathing room for windows. + +;; Set up the visible bell. +(setq visible-bell nil + ring-bell-function 'flash-mode-line) +(defun flash-mode-line () + (invert-face 'mode-line) + (run-with-timer 0.1 nil #'invert-face 'mode-line)) + +;; Do not center cursor after scroll. +(setq scroll-conservatively 101) + +#+end_src + +** Font configuration +#+begin_src emacs-lisp +(set-face-attribute 'default nil :font "Fira Code Retina") + +;; Enable ligatures for fonts that allow it (Fira Code does). +;; The ligature package is locally installed. + +;; Ligatures cause problems with python, I could find out which ones do and avoid them. + +;; (use-package ligature +;; :ensure nil +;; :config +;; ;; Enable the "www" ligature in every possible major mode +;; (ligature-set-ligatures 't '("www")) +;; ;; Enable traditional ligature support in eww-mode, if the +;; ;; `variable-pitch' face supports it +;; (ligature-set-ligatures 'eww-mode '("ff" "fi" "ffi")) +;; ;; Enable all Cascadia Code ligatures in programming modes +;; (ligature-set-ligatures '(prog-mode org-mode) ;; Be careful to not use the asterisk ligatures becase they interfere with org mode. +;; '("www" "**/" "*>" "*/" "\\\\" "\\\\\\" "{-" "::" +;; ":::" ":=" "!!" "!=" "!==" "-}" "-->" "->" "->>" +;; "-<" "-<<" "-~" "#{" "#[" "##" "###" "####" "#(" "#?" "#_" +;; "#_(" ".-" ".=" ".." "..<" "..." "?=" "??" ";;" "/*" "/**" +;; "/=" "/==" "/>" "//" "///" "&&" "||" "||=" "|=" "|>" "^=" "$>" +;; "++" "+++" "+>" "=:=" "==" "===" "==>" "=>" "=>>" "<=" +;; "=<<" "=/=" ">-" ">=" ">=>" ">>" ">>-" ">>=" ">>>" "<*" +;; "<*>" "<|" "<|>" "<$" "<$>" "" "->" "->>" - "-<" "-<<" "-~" "#{" "#[" "##" "###" "####" "#(" "#?" "#_" - "#_(" ".-" ".=" ".." "..<" "..." "?=" "??" ";;" "/*" "/**" - "/=" "/==" "/>" "//" "///" "&&" "||" "||=" "|=" "|>" "^=" "$>" - "++" "+++" "+>" "=:=" "==" "===" "==>" "=>" "=>>" "<=" - "=<<" "=/=" ">-" ">=" ">=>" ">>" ">>-" ">>=" ">>>" "<*" - "<*>" "<|" "<|>" "<$" "<$>" "" "->" "->>" +;; "-<" "-<<" "-~" "#{" "#[" "##" "###" "####" "#(" "#?" "#_" +;; "#_(" ".-" ".=" ".." "..<" "..." "?=" "??" ";;" "/*" "/**" +;; "/=" "/==" "/>" "//" "///" "&&" "||" "||=" "|=" "|>" "^=" "$>" +;; "++" "+++" "+>" "=:=" "==" "===" "==>" "=>" "=>>" "<=" +;; "=<<" "=/=" ">-" ">=" ">=>" ">>" ">>-" ">>=" ">>>" "<*" +;; "<*>" "<|" "<|>" "<$" "<$>" "