GENESIS
This commit is contained in:
commit
702a75879d
58 changed files with 2630 additions and 0 deletions
61
emacs/.emacs.d/early-init.el
Normal file
61
emacs/.emacs.d/early-init.el
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
;;; -*- lexical-binding: t -*-
|
||||
;;; ________ _______ __ __
|
||||
;;; / | / \ / | / |
|
||||
;;; $$$$$$$$/ _____ ____ ______ _______ _______ $$$$$$$ | ______ ____$$ | ______ ______ _______$$ | __
|
||||
;;; $$ |__ / \/ \ / \ / |/ | $$ |__$$ |/ \ / $$ |/ \ / \ / $$ | / |
|
||||
;;; $$ | $$$$$$ $$$$ |$$$$$$ /$$$$$$$//$$$$$$$/ $$ $$</$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$$/$$ |_/$$/
|
||||
;;; $$$$$/ $$ | $$ | $$ |/ $$ $$ | $$ \ $$$$$$$ $$ $$ $$ | $$ $$ | $$/$$ | $$ $$ | $$ $$<
|
||||
;;; $$ |_____$$ | $$ | $$ /$$$$$$$ $$ \_____ $$$$$$ | $$ |__$$ $$$$$$$$/$$ \__$$ $$ | $$ \__$$ $$ \_____$$$$$$ \
|
||||
;;; $$ $$ | $$ | $$ $$ $$ $$ / $$/ $$ $$/$$ $$ $$ $$ | $$ $$/$$ $$ | $$ |
|
||||
;;; $$$$$$$$/$$/ $$/ $$/ $$$$$$$/ $$$$$$$/$$$$$$$/ $$$$$$$/ $$$$$$$/ $$$$$$$/$$/ $$$$$$/ $$$$$$$/$$/ $$/
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;
|
||||
;;; Basic settings for quick startup and convenience
|
||||
;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
;; Startup speed, annoyance suppression
|
||||
(setq bedrock--initial-gc-threshold gc-cons-threshold)
|
||||
(setq gc-cons-threshold 10000000)
|
||||
(setq byte-compile-warnings '(not obsolete))
|
||||
(setq warning-suppress-log-types '((comp) (bytecomp)))
|
||||
(setq native-comp-async-report-warnings-errors 'silent)
|
||||
|
||||
;; Silence stupid startup message
|
||||
(advice-add #'display-startup-echo-area-message :override #'ignore)
|
||||
|
||||
;; Tell use-package to install if missing by default
|
||||
;; Use `:ensure nil' in packages you *don't* want to install
|
||||
(setq use-package-always-ensure t)
|
||||
|
||||
;; Setting *-resize-pixelwise to `t' lets frames/windows resize
|
||||
;; smoothly at sub-character increments
|
||||
(setq frame-resize-pixelwise t)
|
||||
; (setq window-resize-pixelwise t)
|
||||
|
||||
(when (fboundp 'tool-bar-mode) ; When in a GUI, disable tool bar;
|
||||
(tool-bar-mode -1)) ; all these tools are in the menu-bar anyway
|
||||
|
||||
;; These settings apply to *all* frames.
|
||||
(setq default-frame-alist '(
|
||||
;; You can turn off scroll bars by uncommenting these lines:
|
||||
(vertical-scroll-bars . nil)
|
||||
(horizontal-scroll-bars . nil)
|
||||
(ns-appearance . dark)
|
||||
(ns-transparent-titlebar . t)
|
||||
|
||||
;; Use this to turn off the OS window decoration
|
||||
;; (undecorated-round . t)
|
||||
;; (internal-border-width . 3)
|
||||
))
|
||||
|
||||
;; These settings apply to the first frame created. The
|
||||
;; (back|fore)ground-color settings need to live here so that a
|
||||
;; theme's background color applies correctly to subsequent frames.
|
||||
(setq initial-frame-alist '((fullscreen . maximized)
|
||||
;; Setting the face in here prevents flashes of
|
||||
;; color as the theme gets activated
|
||||
(background-color . "#000000")
|
||||
(foreground-color . "#ffffff")))
|
||||
382
emacs/.emacs.d/init.el
Normal file
382
emacs/.emacs.d/init.el
Normal file
|
|
@ -0,0 +1,382 @@
|
|||
;;; -*- lexical-binding: t -*-
|
||||
;;; ________ _______ __ __
|
||||
;;; / | / \ / | / |
|
||||
;;; $$$$$$$$/ _____ ____ ______ _______ _______ $$$$$$$ | ______ ____$$ | ______ ______ _______$$ | __
|
||||
;;; $$ |__ / \/ \ / \ / |/ | $$ |__$$ |/ \ / $$ |/ \ / \ / $$ | / |
|
||||
;;; $$ | $$$$$$ $$$$ |$$$$$$ /$$$$$$$//$$$$$$$/ $$ $$</$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$$/$$ |_/$$/
|
||||
;;; $$$$$/ $$ | $$ | $$ |/ $$ $$ | $$ \ $$$$$$$ $$ $$ $$ | $$ $$ | $$/$$ | $$ $$ | $$ $$<
|
||||
;;; $$ |_____$$ | $$ | $$ /$$$$$$$ $$ \_____ $$$$$$ | $$ |__$$ $$$$$$$$/$$ \__$$ $$ | $$ \__$$ $$ \_____$$$$$$ \
|
||||
;;; $$ $$ | $$ | $$ $$ $$ $$ / $$/ $$ $$/$$ $$ $$ $$ | $$ $$/$$ $$ | $$ |
|
||||
;;; $$$$$$$$/$$/ $$/ $$/ $$$$$$$/ $$$$$$$/$$$$$$$/ $$$$$$$/ $$$$$$$/ $$$$$$$/$$/ $$$$$$/ $$$$$$$/$$/ $$/
|
||||
|
||||
;;; Minimal init.el
|
||||
|
||||
;;; Contents:
|
||||
;;;
|
||||
;;; - Basic settings
|
||||
;;; - Discovery aids
|
||||
;;; - Minibuffer/completion/searching settings
|
||||
;;; - Interface enhancements/defaults
|
||||
;;; - Tab-bar configuration
|
||||
;;; - Theme
|
||||
;;; - Optional extras
|
||||
;;; - Built-in customization framework
|
||||
|
||||
;;; Guardrail
|
||||
|
||||
(when (< emacs-major-version 31)
|
||||
(error "Emacs Bedrock only works with Emacs 31 and newer; you have version %s" emacs-major-version))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;
|
||||
;;; Basic settings
|
||||
;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
;; Package initialization
|
||||
;;
|
||||
;; Emacs ships with a bunch of Emacs Lisp package archives ("ELPAs")
|
||||
;; pre-configured. The MELPA archive is the biggest package archive
|
||||
;; out there. Most of the packages Bedrock uses in the extras/ folder
|
||||
;; come from the built-in ELPAs, but a few (notably Citar in
|
||||
;; extras/researcher.el) are on MELPA.
|
||||
;;
|
||||
;; These lines add MELPA to the list of ELPAs that Emacs will read.
|
||||
(with-eval-after-load 'package
|
||||
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t))
|
||||
|
||||
;; If you want to turn off the welcome screen, uncomment this
|
||||
;(setopt inhibit-splash-screen t)
|
||||
|
||||
(setopt initial-major-mode 'fundamental-mode) ; default mode for the *scratch* buffer
|
||||
(setopt display-time-default-load-average nil) ; this information is useless for most
|
||||
|
||||
;; Automatically reread from disk if the underlying file changes by
|
||||
;; using the OS file change notification interface rather than
|
||||
;; repeatedly polling to see if there are changes.
|
||||
;;
|
||||
;; Some systems don't do file notifications well; see
|
||||
;; https://todo.sr.ht/~ashton314/emacs-bedrock/11
|
||||
;; Set this to `nil' if Emacs is having trouble picking up changes.
|
||||
(setopt auto-revert-avoid-polling t)
|
||||
(setopt auto-revert-interval 5)
|
||||
(setopt auto-revert-check-vc-info t)
|
||||
(global-auto-revert-mode)
|
||||
|
||||
;; Save history of minibuffer: future invocations will have
|
||||
;; recently-used selections sorted first
|
||||
(savehist-mode)
|
||||
|
||||
;; Save existing clipboard content to the kill ring---useful if you've
|
||||
;; copied something from an external program and then kill some text
|
||||
;; in Emacs shortly after. Also, deduplicate kill ring contents.
|
||||
(setopt save-interprogram-paste-before-kill t)
|
||||
(setopt kill-do-not-save-duplicates t)
|
||||
|
||||
;; Don't ping url-looking things when running find-file
|
||||
(setopt ffap-machine-p-known 'reject)
|
||||
|
||||
;; Move through windows with Ctrl-<arrow keys>
|
||||
(windmove-default-keybindings 'control) ; You can use other modifiers here
|
||||
|
||||
;; Rebalance windows automatically when splitting
|
||||
(setopt window-combination-resize t)
|
||||
|
||||
;; On macOS, make the first click raise the window but don't
|
||||
;; reposition the cursor to where the click happened.
|
||||
(setopt ns-click-through nil)
|
||||
|
||||
;; Prefer horizontal split on landscape monitors: `longest' is
|
||||
;; default; can be `vertical' or `horizontal'.
|
||||
;; See also the variable `split-width-threshold'.
|
||||
(setopt split-window-preferred-direction 'longest)
|
||||
|
||||
;; Fix archaic defaults; justification: https://practicaltypography.com/one-space-between-sentences.html
|
||||
(setopt sentence-end-double-space nil)
|
||||
|
||||
;; Make all confirmation prompts use `y' or `n'. Default is for some
|
||||
;; prompts to ask for a full `yes' or `no' when the operation is
|
||||
;; potentially dangerous. Commented out to keep the safer behavior.
|
||||
; (setopt use-short-answers t)
|
||||
|
||||
;; Make right-click do something sensible and shift-drag behave better
|
||||
(when (display-graphic-p)
|
||||
(mouse-shift-adjust-mode)
|
||||
(context-menu-mode))
|
||||
|
||||
;; Don't litter file system with *~ backup files; put them all inside
|
||||
;; ~/.emacs.d/backup or wherever
|
||||
(defun bedrock--backup-file-name (fpath)
|
||||
"Return a new file path of a given file path.
|
||||
If the new path's directories does not exist, create them."
|
||||
(let* ((backupRootDir (concat user-emacs-directory "emacs-backup/"))
|
||||
(filePath (replace-regexp-in-string "[A-Za-z]:" "" fpath )) ; remove Windows driver letter in path
|
||||
(backupFilePath (replace-regexp-in-string "//" "/" (concat backupRootDir filePath "~") )))
|
||||
(make-directory (file-name-directory backupFilePath) (file-name-directory backupFilePath))
|
||||
backupFilePath))
|
||||
(setopt make-backup-file-name-function 'bedrock--backup-file-name)
|
||||
|
||||
;; The above creates nested directories in the backup folder. If
|
||||
;; instead you would like all backup files in a flat structure, albeit
|
||||
;; with their full paths concatenated into a filename, then you can
|
||||
;; use the following configuration:
|
||||
;; (Run `'M-x describe-variable RET backup-directory-alist RET' for more help)
|
||||
;;
|
||||
;; (let ((backup-dir (expand-file-name "emacs-backup/" user-emacs-directory)))
|
||||
;; (setopt backup-directory-alist `(("." . ,backup-dir))))
|
||||
|
||||
;; Basic speedups
|
||||
;;
|
||||
;; Emacs works really hard to be incredibly compatible out-of-the-box
|
||||
;; with a wide variety of languages. That comes at the cost of a
|
||||
;; little performance. These tell Emacs to assume left-to-right text
|
||||
;; in all buffers.
|
||||
;; Remove/comment if you read right-to-left languages (Arabic, Hebrew, etc.)
|
||||
(setq-default bidi-paragraph-direction 'left-to-right)
|
||||
(setq bidi-inhibit-bpa t)
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;
|
||||
;;; Discovery aids
|
||||
;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
;; Show the help buffer after startup---makes it a little bit like nano.
|
||||
;; You can open and dismiss this buffer with `C-h C-q'.
|
||||
(add-hook 'after-init-hook 'help-quick)
|
||||
|
||||
(setopt view-lossage-auto-refresh t)
|
||||
|
||||
;; which-key: shows a popup of available keybindings when typing a long key
|
||||
;; sequence (e.g. C-x ...)
|
||||
(use-package which-key
|
||||
:config
|
||||
(which-key-mode))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;
|
||||
;;; Minibuffer/completion/searching settings
|
||||
;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
;; For help, see: https://www.masteringemacs.org/article/understanding-minibuffer-completion
|
||||
|
||||
(setopt enable-recursive-minibuffers t) ; Use the minibuffer whilst in the minibuffer
|
||||
(setopt completion-cycle-threshold 1) ; TAB cycles candidates
|
||||
(setopt completions-detailed t) ; Show annotations
|
||||
(setopt tab-always-indent 'complete) ; When I hit TAB, try to complete, otherwise, indent
|
||||
(setopt completion-styles '(basic initials substring)) ; Different styles to match input to candidates
|
||||
|
||||
(setopt minibuffer-visible-completions t) ; Use ↑↓ to select candidates
|
||||
(setopt completion-auto-help 'always) ; Open completion always; `lazy' another option
|
||||
(setopt completions-max-height 20) ; This is an arbitrary value
|
||||
(setopt completions-format 'one-column) ; Makes it easier to scroll
|
||||
(setopt completions-group t)
|
||||
|
||||
;; Eager completion setup: show *Completions* buffer immediately
|
||||
(setopt completion-auto-select 'second-tab) ; Much more eager
|
||||
(setopt completion-eager-display t) ; Show the completions buffer immediately
|
||||
(setopt completion-eager-update t) ; Update display as-you-type
|
||||
|
||||
;; Uncomment to get automatic inline completion previews
|
||||
(completion-preview-mode)
|
||||
|
||||
|
||||
(keymap-set minibuffer-mode-map "TAB" 'minibuffer-complete) ; TAB acts more like how it does in the shell
|
||||
|
||||
;; For a fancier built-in completion option, try ido-mode,
|
||||
;; icomplete-vertical, or fido-mode. See also the file extras/base.el
|
||||
|
||||
;(icomplete-vertical-mode)
|
||||
;(fido-vertical-mode)
|
||||
;(setopt icomplete-delay-completions-threshold 4000)
|
||||
|
||||
|
||||
;; isearch is Emacs's built-in searching system
|
||||
(use-package isearch
|
||||
:ensure nil ; already installed
|
||||
:bind
|
||||
(:map isearch-mode-map
|
||||
("C-." . isearch-forward-thing-at-point)) ; Search for thing under cursor
|
||||
:custom
|
||||
(lazy-count-prefix-format "(%s/%s) ")
|
||||
(isearch-lazy-count t) ; show match count
|
||||
(isearch-allow-motion t)
|
||||
(isearch-allow-scroll t) ; lets you scroll without breaking search
|
||||
(isearch-repeat-on-direction-change t) ; C-r immediately goes to previous match
|
||||
(isearch-wrap-pause 'no-ding) ; Automatically wrap search to top
|
||||
)
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;
|
||||
;;; Interface enhancements/defaults
|
||||
;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
;; Mode line information
|
||||
(setopt line-number-mode t) ; Show current line in modeline
|
||||
(setopt column-number-mode t) ; Show column as well
|
||||
(setopt mode-line-collapse-minor-modes nil) ; nil default; set to `t' to hide minor modes
|
||||
|
||||
(setopt x-underline-at-descent-line nil) ; Prettier underlines
|
||||
(setopt switch-to-buffer-obey-display-actions t) ; Make switching buffers more consistent
|
||||
|
||||
(setopt show-trailing-whitespace nil) ; By default, don't underline trailing spaces
|
||||
(setopt indicate-buffer-boundaries 'left) ; Show buffer top and bottom in the margin
|
||||
|
||||
;; Enable horizontal scrolling
|
||||
(setopt mouse-wheel-tilt-scroll t)
|
||||
(setopt mouse-wheel-flip-direction t)
|
||||
|
||||
;; Update the cursor shape inside a terminal; e.g. when in insert mode
|
||||
;; when using Evil (Vim emulation) change the cursor to a bar.
|
||||
(setopt xterm-update-cursor t)
|
||||
|
||||
;; These are too personal to prescribe a default; uncomment and
|
||||
;; configure according to your tastes
|
||||
;(setopt indent-tabs-mode nil) ; Only use spaces to perform indentation
|
||||
(setopt tab-width 4)
|
||||
|
||||
;; Misc. UI tweaks
|
||||
(blink-cursor-mode -1) ; Steady cursor
|
||||
(pixel-scroll-precision-mode) ; Smooth scrolling
|
||||
;; If you use a mouse and scrolling seems a little jittery, you might
|
||||
;; want to set this to `nil':
|
||||
;(setopt pixel-scroll-precision-interpolate-mice nil)
|
||||
|
||||
;; Use common keystrokes by default
|
||||
;(cua-mode)
|
||||
|
||||
;; Makes it easier to repeat commands; `C-x o C-x o' becomes `C-x o o'
|
||||
;; See https://karthinks.com/software/it-bears-repeating/
|
||||
(repeat-mode)
|
||||
|
||||
;; Display line numbers in programming mode
|
||||
(add-hook 'prog-mode-hook 'display-line-numbers-mode)
|
||||
(setopt display-line-numbers-width 3) ; Set a minimum width
|
||||
|
||||
;; Nice line wrapping when working with text
|
||||
(add-hook 'text-mode-hook 'visual-line-mode)
|
||||
|
||||
(setopt global-hl-line-sticky-flag 'window) ; Every window gets own hl-line instance
|
||||
(global-hl-line-mode)
|
||||
|
||||
;; Use this to enable the line highlight in only certain modes:
|
||||
;(let ((hl-line-hooks '(text-mode-hook prog-mode-hook)))
|
||||
; (mapc (lambda (hook) (add-hook hook 'hl-line-mode)) hl-line-hooks))
|
||||
|
||||
;; Show matching delimiters
|
||||
(setopt show-paren-delay 0)
|
||||
(setopt show-paren-mode t)
|
||||
(setopt show-paren-style 'expression) ; default is 'parenthesis and just does delimiters
|
||||
(setopt show-paren-context-when-offscreen 'overlay)
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;
|
||||
;;; Tab-bar configuration
|
||||
;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
;; Show the tab-bar as soon as tab-bar functions are invoked
|
||||
(setopt tab-bar-show 1)
|
||||
|
||||
;; Add the time to the tab-bar, if visible
|
||||
;(add-to-list 'tab-bar-format 'tab-bar-format-align-right 'append)
|
||||
;(add-to-list 'tab-bar-format 'tab-bar-format-global 'append)
|
||||
;(setopt display-time-format "%a %F %T")
|
||||
;(setopt display-time-interval 1)
|
||||
;(display-time-mode)
|
||||
|
||||
;; A transient menu to make working with the tab-bar easier
|
||||
;; The `transient' library is built-in and makes defining little menus
|
||||
;; easy to work with. Activate this menu with `C-c C-t'.
|
||||
(use-package transient
|
||||
:ensure nil ; built-in
|
||||
:config
|
||||
;; You can define as many of these as you like
|
||||
(transient-define-prefix tab-bar-transient ()
|
||||
"Tab-bar menu"
|
||||
[["Creation"
|
||||
("t" "new tab" tab-bar-new-tab)
|
||||
("n" "next command in new tab" other-tab-prefix)]
|
||||
["Movement"
|
||||
("j" "jump to tab" tab-switch)
|
||||
("h" "move left" tab-bar-move-tab-backward :transient t)
|
||||
("l" "move right" tab-bar-move-tab :transient t)]]
|
||||
[["Management"
|
||||
("r" "rename tab" tab-rename)]]
|
||||
[[""
|
||||
("RET" "Done" transient-quit-one)]])
|
||||
:bind (:map global-map
|
||||
("C-c C-t" . tab-bar-transient)))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;
|
||||
;;; Theme
|
||||
;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
(use-package emacs
|
||||
:config
|
||||
(load-theme 'modus-vivendi)) ; for light theme, use modus-operandi
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;
|
||||
;;; Optional extras
|
||||
;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
;; Uncomment the (load-file …) lines or copy code from the extras/ elisp files
|
||||
;; as desired
|
||||
|
||||
;; UI/UX enhancements mostly focused on minibuffer and autocompletion interfaces
|
||||
;; These ones are *strongly* recommended!
|
||||
;(load-file (expand-file-name "extras/base.el" user-emacs-directory))
|
||||
|
||||
;; Packages for software development
|
||||
;(load-file (expand-file-name "extras/dev.el" user-emacs-directory))
|
||||
|
||||
;; Vim-bindings in Emacs (evil-mode configuration)
|
||||
;(load-file (expand-file-name "extras/vim-like.el" user-emacs-directory))
|
||||
|
||||
;; Writing-focused packages (dictionary, spell-checking, etc.)
|
||||
;(load-file (expand-file-name "extras/writer.el" user-emacs-directory))
|
||||
|
||||
;; Org-mode configuration
|
||||
;; WARNING: need to customize things inside the elisp file before use! See
|
||||
;; the file extras/org-intro.txt for help.
|
||||
;(load-file (expand-file-name "extras/org.el" user-emacs-directory))
|
||||
|
||||
;; Email configuration in Emacs
|
||||
;; WARNING: needs the `mu' program installed; see the elisp file for more
|
||||
;; details.
|
||||
;(load-file (expand-file-name "extras/email.el" user-emacs-directory))
|
||||
|
||||
;; Tools for academic researchers
|
||||
;(load-file (expand-file-name "extras/researcher.el" user-emacs-directory))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;
|
||||
;;; Built-in customization framework
|
||||
;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
(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 '()))
|
||||
(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.
|
||||
|
||||
;; This sets the default font for Emacs. Height is in 1/10 pt; configure as desired.
|
||||
;; The example font listed here, Iosevka Output, is available here: https://codeberg.org/ashton314/iosevka-output
|
||||
;; '(default ((t (:weight normal :height 130 :width expanded :family "Iosevka Output"))))
|
||||
)
|
||||
|
||||
(setq gc-cons-threshold (or bedrock--initial-gc-threshold 800000))
|
||||
20
git/.config/git/config
Normal file
20
git/.config/git/config
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
[core]
|
||||
sshCommand = "ssh -i ~/.ssh/id_ed25519"
|
||||
|
||||
[gpg]
|
||||
format = ssh
|
||||
|
||||
[gpg.ssh]
|
||||
program = "ssh-keygen"
|
||||
allowedSignersFile = "~/.ssh/allowed_signers"
|
||||
|
||||
[user]
|
||||
email = "notasnev@proton.me"
|
||||
name = "asnev"
|
||||
signingkey = "~/.ssh/id_ed25519.pub"
|
||||
|
||||
[commit]
|
||||
gpgsign = true
|
||||
|
||||
[tag]
|
||||
gpgsign = true
|
||||
2
lazygit/.config/lazygit/config.yml
Normal file
2
lazygit/.config/lazygit/config.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
git:
|
||||
overrideGpg: true
|
||||
39
nano/.config/nano/ada.nanorc
Normal file
39
nano/.config/nano/ada.nanorc
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
## Syntax highlighting for Ada.
|
||||
|
||||
## Original author: Andreas K. Foerster
|
||||
## License: GPL version 3 or newer
|
||||
|
||||
## Language reference: http://www.ada-auth.org/standards/12rm/html/RM-TTL.html
|
||||
|
||||
syntax ada "\.ad[abcs]$"
|
||||
comment "--"
|
||||
|
||||
# This linter command leaves an ALI file in the working directory.
|
||||
linter gcc -c -gnatc
|
||||
|
||||
# Reserved Words (RM 2.9)
|
||||
icolor yellow "\<(abort|abs|abstract|accept|access|aliased|all|and|array|at)\>"
|
||||
icolor yellow "\<(begin|body|case|constant|declare|delay|delta|do)\>"
|
||||
icolor yellow "\<(else|elsif|end|entry|exception|exit|for|function|generic|goto)\>"
|
||||
icolor yellow "\<(if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding)\>"
|
||||
icolor yellow "\<(package|pragma|private|procedure|protected|raise|range|record|rem|renames)\>"
|
||||
icolor yellow "\<(requeue|return|reverse|select|separate|some|subtype|synchronized)\>"
|
||||
icolor yellow "\<(tagged|task|terminate|then|type|until|use|when|while|with|xor)\>"
|
||||
|
||||
# Separators / Operators
|
||||
color magenta "'|&|\*|\+|\-|\.|\,|\/|:|;|\(|\)|<|>|\||="
|
||||
|
||||
# Attributes
|
||||
color cyan "'[[:alnum:]]+"
|
||||
|
||||
# Numbers (RM 2.4)
|
||||
color green "\<[0-9][0-9A-Fa-f_#.+-]*"
|
||||
|
||||
# Characters / Strings
|
||||
color red "'.'|"[^"]*""
|
||||
|
||||
# Comments
|
||||
color brightblue "--.*"
|
||||
|
||||
# Trailing whitespace
|
||||
color ,blue "[[:space:]]+$"
|
||||
48
nano/.config/nano/adoc.nanorc
Normal file
48
nano/.config/nano/adoc.nanorc
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
## Syntax highlighting for AsciiDoc files.
|
||||
|
||||
## Original author: Benno Schulenberg
|
||||
## License: GPL version 3 or newer
|
||||
|
||||
syntax adoc "\.(adoc|asciidoc)$"
|
||||
comment "//"
|
||||
|
||||
# Keywords (and their arguments first):
|
||||
color sand "^:.*"
|
||||
color #8cc "^:[[:alnum:] -]+:|^[[:alpha:]]+::"
|
||||
|
||||
# Headers:
|
||||
color #ee0 "^=.*"
|
||||
|
||||
# Italic:
|
||||
color peach "_([^_]|[^_ ][^_]*[^_ ])_|__([^_]|[^ ].*[^ ])__"
|
||||
# Bold:
|
||||
color pink "\*([^*]|[^* ][^*]*[^* ])\*|\*\*([^*]|[^* ][^*]*[^* ])\*\*"
|
||||
# Subscript:
|
||||
color beet "~[^[:blank:]~]+~"
|
||||
# Superscript:
|
||||
color purple "\^[^[:blank:]^]+\^"
|
||||
|
||||
# Character replacements:
|
||||
color sage "\{(empty|(nb|zw)?sp|wj|apos|quot|[lr][sd]quo|deg|plus|vbar|amp|lt|gt|(start|end)sb|caret|asterisk|tilde|back(slash|tick)|two-(semi)?colons|cxx|pp)\}"
|
||||
|
||||
# List-item markers:
|
||||
color bold,lightgreen "^ *(\*|-|\.) "
|
||||
# Block markers:
|
||||
color bold,sky "^(----+|____+|\.\.\.\.+)$"
|
||||
|
||||
# Verbatim text:
|
||||
color mint "^ +.*"
|
||||
|
||||
# Cross references:
|
||||
color mauve "<<.*>>"
|
||||
|
||||
# Continuation marker:
|
||||
color bold,plum "(^| )\+$"
|
||||
|
||||
# Includes:
|
||||
color #8cc "^include::.*"
|
||||
color #88c "^(ifdef|endif)::.*"
|
||||
|
||||
# Comments:
|
||||
color lagoon "^//.*"
|
||||
color lagoon start="////" end="////"
|
||||
25
nano/.config/nano/asm.nanorc
Normal file
25
nano/.config/nano/asm.nanorc
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
## Syntax highlighting for assembler.
|
||||
|
||||
## Original author: Mike Frysinger
|
||||
## License: GPL version 3 or newer
|
||||
|
||||
syntax asm "\.(S|s|asm)$"
|
||||
magic "assembler source"
|
||||
comment "//"
|
||||
|
||||
color red "\<[[:alpha:]_]{2,}\>"
|
||||
color brightgreen "\.(data|subsection|text)\>"
|
||||
color green "\.(align|file|globl|global|hidden|section|size|type|weak)\>"
|
||||
color brightyellow "\.(ascii|asciz|byte|double|float|hword|int|long|short|single|struct|word)\>"
|
||||
color brightred "^[[:blank:]]*[[:alnum:]_.]*:"
|
||||
color brightcyan "^[[:blank:]]*#[[:blank:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)\>"
|
||||
|
||||
# Strings and names of included files.
|
||||
color brightyellow ""([^"\]|\\.)*"|<[^= ]*>"
|
||||
|
||||
# Comments.
|
||||
color brightblue "//.*"
|
||||
color brightblue start="/\*" end="\*/"
|
||||
|
||||
# Trailing whitespace.
|
||||
color ,green "[[:space:]]+$"
|
||||
35
nano/.config/nano/autoconf.nanorc
Normal file
35
nano/.config/nano/autoconf.nanorc
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
## Syntax highlighting for Autoconf.
|
||||
|
||||
## Original author: Benno Schulenberg
|
||||
## License: GPL version 3 or newer
|
||||
|
||||
syntax autoconf "\.(ac|m4)$"
|
||||
comment "#"
|
||||
|
||||
# Keywords:
|
||||
color yellow "\<(if|test|then|elif|else|fi|case|esac|ifelse|for|in|do|done)\>"
|
||||
color yellow "=|!=|&&|\|\|"
|
||||
|
||||
# Macros:
|
||||
color cyan "\<[[:upper:][:digit:]_]+\>"
|
||||
|
||||
# Version numbers:
|
||||
color red "\<[-_.0-9]+\>"
|
||||
|
||||
# Strings:
|
||||
color red ""[^"]*"|'[^']*'"
|
||||
|
||||
# Backticks:
|
||||
color green "`[^`]*`"
|
||||
|
||||
# Error lines:
|
||||
color brightred "^[[:blank:]]*\*\*\*.*"
|
||||
|
||||
# Brackets:
|
||||
color magenta "\[|\]|\(|\)"
|
||||
|
||||
# Comments:
|
||||
color blue "^[[:blank:]]*#.*|\<dnl.*"
|
||||
|
||||
# Trailing whitespace:
|
||||
color ,green "[[:space:]]+$"
|
||||
41
nano/.config/nano/awk.nanorc
Normal file
41
nano/.config/nano/awk.nanorc
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
## Syntax highlighting for AWK scripts.
|
||||
|
||||
## Original author: Donnie Berkholz
|
||||
|
||||
syntax awk "\.awk$"
|
||||
header "^#!.*awk"
|
||||
magic "awk script"
|
||||
comment "#"
|
||||
|
||||
# Records.
|
||||
color brightred "\$[[:alnum:]_!@#$*?-]+"
|
||||
# Awk-set variables.
|
||||
color red "\<(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\>"
|
||||
color red "\<(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\>"
|
||||
color red "\<(PROCINFO|RS|RT|RSTART|RLENGTH|SUBSEP|TEXTDOMAIN)\>"
|
||||
# Function declarations and special patterns.
|
||||
color brightgreen "\<(function|extension|BEGIN|END)\>"
|
||||
# Operators and brackets/braces/slashes/parentheses.
|
||||
color green "[][!%&()*+/:;<=>?\^{|}~-]"
|
||||
# Flow control.
|
||||
color brightyellow "\<(for|if|while|do|else|in|delete|exit)\>"
|
||||
color brightyellow "\<(break|continue|return)\>"
|
||||
# I/O statements.
|
||||
color brightgreen "\<(close|fflush|getline|next|nextfile|print|printf|system)\>"
|
||||
# Standard functions.
|
||||
color magenta "\<(atan2|cos|exp|int|log|rand|sin|sqrt|srand)\>"
|
||||
color magenta "\<(asort|asorti|gensub|gsub|index|length|match)\>"
|
||||
color magenta "\<(split|sprintf|strtonum|sub|substr|tolower|toupper)\>"
|
||||
color magenta "\<(mktime|strftime|systime)\>"
|
||||
color magenta "\<(and|compl|lshift|or|rshift|xor)\>"
|
||||
color magenta "\<(bindtextdomain|dcgettext|dcngettext)\>"
|
||||
|
||||
# Strings.
|
||||
color brightyellow ""([^"\]|\\.)*""
|
||||
# Escape sequences.
|
||||
color brick "\\([abfnrtv\/"]|[0-7]{1,3}|x[[:xdigit:]]{1,2}|u[[:xdigit:]]{1,8})"
|
||||
# Comments.
|
||||
color brightblue "(^|[[:blank:]])#.*"
|
||||
|
||||
# Trailing whitespace.
|
||||
color ,green "[[:space:]]+$"
|
||||
50
nano/.config/nano/c.nanorc
Normal file
50
nano/.config/nano/c.nanorc
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
## Syntax highlighting for C and C++ files.
|
||||
|
||||
syntax c "\.([ch](pp|xx)?|C|cc|c\+\+|cu|H|hh|ii?)$"
|
||||
header "-\*-.*\<C(\+\+)?((;|[[:blank:]]).*)?-\*-"
|
||||
magic "^(C|C\+\+) (source|program)"
|
||||
comment "//"
|
||||
|
||||
# Constants.
|
||||
color brightred "\<[[:upper:]_][[:upper:][:digit:]_]*\>"
|
||||
# Labels.
|
||||
color brightmagenta "^[[:blank:]]*[[:alpha:]_][[:alnum:]_]*:[[:blank:]]*$"
|
||||
color normal ":[[:blank:]]*$"
|
||||
|
||||
# Types and related keywords.
|
||||
color green "\<(bool|char|double|enum|float|int|long|short|(un)?signed|struct|union|void|((u_?)?int(_fast|_least)?(8|16|32|64)|[[:lower:]][[:lower:]_]*)_t)\>"
|
||||
color green "\<(align(as|of)|auto|const(eval|expr|init)?|extern|inline|register|restrict|sizeof|static(_assert)?|thread_local|typedef|typeof(_unqual)?|volatile)\>"
|
||||
color green "\<(_(Align(as|of)|Atomic|BitInt|Bool|Complex|Decimal(32|64|128)|Generic|Imaginary|Noreturn|Static_assert|Thread_local))\>"
|
||||
color green "\<(class|explicit|final|friend|mutable|namespace|override|private|protected|public|template|this|typename|using|virtual)\>"
|
||||
color green "\<(char(8|16|32)_t|wchar_t|(const|dynamic|reinterpret|static)_cast|decltype|export|import|module|noexcept|requires|typeid)\>"
|
||||
|
||||
# Flow control.
|
||||
color brightyellow "\<(if|else|for|while|do|switch|case|default)\>"
|
||||
color brightyellow "\<(try|throw|catch|operator|new|delete)\>"
|
||||
color magenta "\<(break|continue|goto|(co_)?return)\>"
|
||||
|
||||
# Single-quoted stuff (characters, backslash escapes, hex and octal byte codes).
|
||||
color brightmagenta "'([^'\]|\\(["'\abfnrtv]|x[[:xdigit:]]{1,2}|[0-3]?[0-7]{1,2}))'"
|
||||
|
||||
# Hexadecimal, binary, and boolean values.
|
||||
color pink "\<(0[Xx][[:xdigit:]]['[:xdigit:]]*|0[Bb][01]['01]*|true|false|nullptr)\>"
|
||||
|
||||
# GCC builtins.
|
||||
color cyan "__attribute__[[:blank:]]*\(\([^)]*\)\)|__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__"
|
||||
|
||||
# Strings and names of included files.
|
||||
color brightyellow ""([^"]|\\")*"|#[[:blank:]]*include[[:blank:]]*<[^>]+>"
|
||||
|
||||
# Preprocessor directives.
|
||||
color brightcyan start="^[[:blank:]]*#[[:blank:]]*((el)?if(n?def)?|error|pragma|warning)\>" end="(\`|[^\])$"
|
||||
color brightcyan "^[[:blank:]]*#[[:blank:]]*((define|else|embed|endif|include(_next)?|line|undef)\>|$)"
|
||||
|
||||
# Comments.
|
||||
color brightblue "//[^"]*$|(^|[[:blank:]])//.*"
|
||||
color brightblue start="/\*" end="\*/"
|
||||
|
||||
# Reminders.
|
||||
color brightwhite,yellow "\<(FIXME|TODO|XXX)\>"
|
||||
|
||||
# Trailing whitespace.
|
||||
color ,green "[[:space:]]+$"
|
||||
31
nano/.config/nano/changelog.nanorc
Normal file
31
nano/.config/nano/changelog.nanorc
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
## Syntax highlighting for Changelogs.
|
||||
|
||||
## Original author: Benno Schulenberg
|
||||
## License: GPL version 3 or newer
|
||||
|
||||
syntax changelog "Change[Ll]og[^/]*$"
|
||||
|
||||
# Author lines.
|
||||
color green "^(19|20).*"
|
||||
# Dates.
|
||||
color red "^(19|20)[[:digit:]-]{8}"
|
||||
# Email addresses.
|
||||
color yellow "<[^>]*@[^>]*>"
|
||||
|
||||
# Command-line options.
|
||||
color cyan "[[:blank:]]-[[:alpha:]$]|--[[:lower:]8-]+"
|
||||
# Bug and patch numbers.
|
||||
color cyan "(BZ|bug|patch) #[[:digit:]]+|PR [[:alnum:]]+/[[:digit:]]+"
|
||||
# Probable constants, for variety.
|
||||
color brightred "\<[[:upper:]_][[:upper:][:digit:]_]+\>"
|
||||
# Key sequences.
|
||||
color brightblue "\^[[:upper:]\^_]|\<M-.|\<F1?[[:digit:]]|(\^|M-)Space"
|
||||
|
||||
# Changed files.
|
||||
color magenta start="^( | {8})\* " end="(:( |$)|^$)"
|
||||
|
||||
# Release markers.
|
||||
color brightblue "^(GNU )?nano[- ][[:digit:]]\.[[:digit:]]\.[^ ]+"
|
||||
|
||||
# Trailing whitespace.
|
||||
color ,green "[[:space:]]+$"
|
||||
24
nano/.config/nano/cmake.nanorc
Normal file
24
nano/.config/nano/cmake.nanorc
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
## Syntax highlighting for CMake files.
|
||||
|
||||
## Original author: Felipe Bugno
|
||||
|
||||
syntax cmake "(CMakeLists\.txt|\.cmake)$"
|
||||
comment "#"
|
||||
|
||||
color green "^[[:blank:]]*[[:alnum:]_]+"
|
||||
icolor brightyellow "^[[:blank:]]*(include|include_directories|include_external_msproject)\>"
|
||||
|
||||
icolor brightgreen "^[[:blank:]]*((else|end)?if|else|(end)?while|(end)?foreach|break)\>"
|
||||
color brightgreen "\<(NOT|COMMAND|POLICY|TARGET|EXISTS|IS_(DIRECTORY|ABSOLUTE)|DEFINED)[[:blank:]]"
|
||||
color brightgreen "[[:blank:]](OR|AND|IS_NEWER_THAN|MATCHES|(STR|VERSION_)?(LESS|GREATER|EQUAL))[[:blank:]]"
|
||||
|
||||
icolor brightred "^[[:blank:]]*((end)?(function|macro)|return)"
|
||||
|
||||
icolor cyan start="\$(ENV)?\{" end="\}"
|
||||
color magenta "\<(APPLE|UNIX|WIN32|CYGWIN|BORLAND|MINGW|MSVC(_IDE|60|71|80|90)?)\>"
|
||||
|
||||
# Comments.
|
||||
color brightblue "(^|[[:blank:]])#.*"
|
||||
|
||||
# Trailing whitespace.
|
||||
color ,green "[[:space:]]+$"
|
||||
22
nano/.config/nano/css.nanorc
Normal file
22
nano/.config/nano/css.nanorc
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
## Syntax highlighting for CSS files.
|
||||
|
||||
## Original author: Simon Rupf
|
||||
|
||||
syntax css "\.css$"
|
||||
comment "/*|*/"
|
||||
|
||||
# First make everything red:
|
||||
color brightred "."
|
||||
# Then everything between braces yellow:
|
||||
color brightyellow start="\{" end="\}"
|
||||
# Then everything after a colon white:
|
||||
color brightwhite start=":" end="([;^{]|$)"
|
||||
|
||||
# Pseudo-classes:
|
||||
color brightcyan ":(active|checked|focus|hover|link|visited|after|before)\>"
|
||||
|
||||
# Comments:
|
||||
color brightblue start="/\*" end="\*/"
|
||||
|
||||
# Syntactic characters:
|
||||
color green ";|:|\{|\}"
|
||||
33
nano/.config/nano/default.nanorc
Normal file
33
nano/.config/nano/default.nanorc
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
## This is an example of a default syntax. The default syntax is used for
|
||||
## files that do not match any other syntax.
|
||||
|
||||
syntax default
|
||||
comment "#"
|
||||
|
||||
# Spaces in front of tabs.
|
||||
color ,red " + +"
|
||||
|
||||
# Nano's release motto, then name plus version.
|
||||
color italic,lime "\<[Nn]ano [1-9]\.[0-9][-.[:alnum:]]* "[^"]+""
|
||||
color brightred "\<(GNU )?[Nn]ano [1-9]\.[0-9][-.[:alnum:]]*\>"
|
||||
|
||||
# Dates
|
||||
color latte "\<[12][0-9]{3}\.(0[1-9]|1[012])\.(0[1-9]|[12][0-9]|3[01])\>"
|
||||
|
||||
# Email addresses.
|
||||
color magenta "<[[:alnum:].%_+-]+@[[:alnum:].-]+\.[[:alpha:]]{2,}>"
|
||||
|
||||
# URLs.
|
||||
color lightblue "\<https?://\S+\.\S+[^])>[:space:],.]"
|
||||
|
||||
# Bracketed captions in certain config files.
|
||||
color brightgreen "^\[[^][]+\]$"
|
||||
|
||||
# Comments.
|
||||
color cyan "^[[:blank:]]*#.*"
|
||||
|
||||
# Make hard (non-breaking) spaces noticeable.
|
||||
color ,#444 " "
|
||||
|
||||
# Control codes.
|
||||
color orange "[[:cntrl:]]"
|
||||
36
nano/.config/nano/elisp.nanorc
Normal file
36
nano/.config/nano/elisp.nanorc
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
## Syntax highlighting for Emacs Lisp.
|
||||
|
||||
## Original author: Mark Oteiza
|
||||
## License: GPL version 3 or newer
|
||||
|
||||
syntax elisp "\.el$"
|
||||
magic "Lisp/Scheme program"
|
||||
comment ";"
|
||||
|
||||
# Basic functions/macros
|
||||
color brightcyan "\<(if|when|unless|cond|and|or|lambda|let|progn|while|dolist|dotimes)\>"
|
||||
color brightcyan "\<save-((window-)?excursion|restriction)\>"
|
||||
color brightcyan "\<eval-(and|when)-compile\>"
|
||||
# Defining functions
|
||||
color brightcyan "\<def(un|macro|subst|generic|alias)\>"
|
||||
color brightcyan "\<cl-def(un|macro|subst|generic|struct|type)\>"
|
||||
color brightcyan "\<define-(derived|minor|generic)-mode\>"
|
||||
# Defining variables
|
||||
color brightcyan "\<def(class|const|var(-local|alias)?)\>"
|
||||
# Customization functions
|
||||
color brightcyan "\<def(custom|face|group|theme)\>"
|
||||
# Setting values
|
||||
color brightcyan "\<(setq(-default|-local)?|setf|push|pop|declare(-function)?)\>"
|
||||
# Feature functions
|
||||
color brightcyan "\<(require|provide)\>"
|
||||
# Quoted symbols
|
||||
color brightyellow "#?'\<(\w|-)+\>"
|
||||
# Booleans
|
||||
color brightred "\<(t|nil)\>"
|
||||
# Keywords
|
||||
color blue ":(\w|[?-])+"
|
||||
# Strings
|
||||
color yellow start="^[[:blank:]]+"" end="[^\]""
|
||||
color yellow ""([^"\]|\\.)*""
|
||||
# Comments
|
||||
color cyan "(^|[[:blank:]]);.*"
|
||||
17
nano/.config/nano/email.nanorc
Normal file
17
nano/.config/nano/email.nanorc
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
## Syntax highlighting for emails.
|
||||
|
||||
syntax email "\.eml$"
|
||||
|
||||
# Quoted lines.
|
||||
color green "^>.*"
|
||||
color cyan "^> ?>.*"
|
||||
color yellow "^> ?> ?>.*"
|
||||
|
||||
# Email addresses.
|
||||
color brightmagenta "<[^@]+@[^@]+>"
|
||||
|
||||
# URLs.
|
||||
color brightblue "(https?|ftp)://\S+\.\S+[^[:space:].)]"
|
||||
|
||||
# Signatures, even quoted ones.
|
||||
color yellow start="^>* ?-- $" end="^>* ?$"
|
||||
42
nano/.config/nano/fortran.nanorc
Normal file
42
nano/.config/nano/fortran.nanorc
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
## Syntax highlighting for Fortran 90/95.
|
||||
|
||||
## Original author: Pascal Gentil
|
||||
|
||||
syntax fortran "\.(f|for|f90|f95)$"
|
||||
comment "!"
|
||||
|
||||
color red "\<[0-9]+\>"
|
||||
|
||||
icolor green "\<(action|advance|all|allocatable|allocated|any|apostrophe)\>"
|
||||
icolor green "\<(append|asis|assign|assignment|associated|character|common)\>"
|
||||
icolor green "\<(complex|data|default|delim|dimension|double precision)\>"
|
||||
icolor green "\<(elemental|epsilon|external|file|fmt|form|format|huge)\>"
|
||||
icolor green "\<(implicit|include|index|inquire|integer|intent|interface)\>"
|
||||
icolor green "\<(intrinsic|iostat|kind|logical|module|none|null|only)\>"
|
||||
icolor green "\<(operator|optional|pack|parameter|pointer|position|private)\>"
|
||||
icolor green "\<(program|public|real|recl|recursive|selected_int_kind)\>"
|
||||
icolor green "\<(selected_real_kind|subroutine|status)\>"
|
||||
|
||||
icolor cyan "\<(abs|achar|adjustl|adjustr|allocate|bit_size|call|char)\>"
|
||||
icolor cyan "\<(close|contains|count|cpu_time|cshift|date_and_time)\>"
|
||||
icolor cyan "\<(deallocate|digits|dot_product|eor|eoshift|function|iachar)\>"
|
||||
icolor cyan "\<(iand|ibclr|ibits|ibset|ichar|ieor|iolength|ior|ishft|ishftc)\>"
|
||||
icolor cyan "\<(lbound|len|len_trim|matmul|maxexponent|maxloc|maxval|merge)\>"
|
||||
icolor cyan "\<(minexponent|minloc|minval|mvbits|namelist|nearest|nullify)\>"
|
||||
icolor cyan "\<(open|pad|present|print|product|pure|quote|radix)\>"
|
||||
icolor cyan "\<(random_number|random_seed|range|read|readwrite|replace)\>"
|
||||
icolor cyan "\<(reshape|rewind|save|scan|sequence|shape|sign|size|spacing)\>"
|
||||
icolor cyan "\<(spread|sum|system_clock|target|transfer|transpose|trim)\>"
|
||||
icolor cyan "\<(ubound|unpack|verify|write|tiny|type|use|yes)\>"
|
||||
|
||||
icolor yellow "\<(.and.|case|do|else|else?if|else?where|end|end?do|end?if)\>"
|
||||
icolor yellow "\<(end?select|.eqv.|forall|if|lge|lgt|lle|llt|.neqv.|.not.)\>"
|
||||
icolor yellow "\<(.or.|repeat|select case|then|where|while)\>"
|
||||
|
||||
icolor magenta "\<(continue|cycle|exit|go?to|result|return)\>"
|
||||
|
||||
# Strings.
|
||||
color yellow ""([^"\]|\\.)*""
|
||||
|
||||
# Comments.
|
||||
color blue "!.*"
|
||||
48
nano/.config/nano/go.nanorc
Normal file
48
nano/.config/nano/go.nanorc
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
## Syntax highlighting for Go.
|
||||
|
||||
## Original author: Robert Clausecker
|
||||
## License: CC0 (public domain)
|
||||
|
||||
syntax go "\.go$"
|
||||
comment "//"
|
||||
|
||||
formatter gofmt -w
|
||||
|
||||
# Types.
|
||||
color green "\<(bool|u?int(8|16|32|64)?|float(32|64)|complex(64|128)|byte|rune|uintptr|string|error)\>"
|
||||
color green "\<(chan|const|func|interface|map|struct|type|var)\>"
|
||||
color green "<-[[:blank:]]*chan\>|\<chan[[:blank:]]*<-"
|
||||
|
||||
# Predefined functions.
|
||||
color blue "\<(append|cap|close|complex|copy|delete|imag|len|make|new|panic|print|println|real|recover)\>"
|
||||
|
||||
# Control structures.
|
||||
color brightyellow "\<(case|default|defer|else|for|go|if|range|select|switch)\>"
|
||||
|
||||
# Control flow.
|
||||
color magenta "\<(break|continue|fallthrough|goto|return)\>"
|
||||
|
||||
# Declarations.
|
||||
color brightcyan "\<(package|import)\>"
|
||||
|
||||
# Literals.
|
||||
color red "\<(true|false|nil|iota|_)\>"
|
||||
color red "\<([1-9][0-9]*|0[0-7]*|0[xX][[:xdigit:]]+)\>"
|
||||
color red "\<[0-9]+\.[0-9]*([eE][+-]?[0-9]+)?i?\>"
|
||||
color red "\<[0-9]+[eE][+-]?[0-9]+i?\>"
|
||||
color red "\B\.[0-9]+([eE][+-]?[0-9]+)?i?\>"
|
||||
color red "\<[0-9]+i\>"
|
||||
|
||||
# Strings and characters; slightly fuzzy.
|
||||
color red ""([^"\]|\\.)*"|'([^'\]|\\.)+'"
|
||||
color red start=""([^"\]|\\.)*\\[[:blank:]]*$" end="^([^"\]|\\.)*""
|
||||
|
||||
# Comments.
|
||||
color brightblue "//.*"
|
||||
color brightblue start="/\*" end="\*/"
|
||||
|
||||
# Special comments.
|
||||
color brightcyan "//[[:blank:]]*\+build[[:blank:]]+(([[:alnum:]_]+[[:blank:]]*)+,[[:blank:]]*)*[[:alnum:]_]+"
|
||||
|
||||
# Trailing whitespace.
|
||||
color ,green "[[:space:]]+$"
|
||||
28
nano/.config/nano/groff.nanorc
Normal file
28
nano/.config/nano/groff.nanorc
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
## Syntax highlighting for groff.
|
||||
|
||||
## Original author: Robert D. Goulding
|
||||
|
||||
syntax groff "\.(me|mm|mom|ms|roff|tmac)$|/tmac\.[^/]+$"
|
||||
comment ".\""
|
||||
|
||||
# The setting of a string or register
|
||||
color cyan "^\.(ds|nr) [^[:space:]]*"
|
||||
# Single-character escapes
|
||||
color brightmagenta "\\."
|
||||
# The argument of \f or \s in the same color
|
||||
color brightmagenta "\\f(.|\(..)|\\s(\+|\-)?[0-9]"
|
||||
# References to registers
|
||||
color cyan "\\(\\)?n(.|\(..)"
|
||||
color cyan start="\\(\\)?n\[" end="]"
|
||||
# Requests
|
||||
color brightgreen "^\.[[:blank:]]*[^[:space:]]*"
|
||||
# Comments
|
||||
color yellow "(^\\#|(^\.)?\\").*"
|
||||
# References to strings
|
||||
color green "\\(\\)?\*(.|\(..)"
|
||||
color green start="\\(\\)?\*\[" end="]"
|
||||
# Special characters
|
||||
color brightred "\\\(.."
|
||||
color brightred start="\\\[" end="]"
|
||||
# Macro arguments
|
||||
color brightcyan "\\\\\$[0-9]"
|
||||
30
nano/.config/nano/guile.nanorc
Normal file
30
nano/.config/nano/guile.nanorc
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
## Syntax highlighting for Guile Scheme.
|
||||
|
||||
## Original authors: Mark Oteiza and Benno Schulenberg
|
||||
## License: GPL version 3 or newer
|
||||
|
||||
syntax guile "\.(scm|sld|sls|ss)$"
|
||||
header "^#!.*guile"
|
||||
comment ";"
|
||||
|
||||
# Basic syntax
|
||||
color lightgreen "\<((and|begin|case|cond|do|else|if|lambda|let(rec)?|or|quote|unless|when)\>|let\*|set!)"
|
||||
# Basic procedures
|
||||
color lightcyan "\<((append|apply|c[ad]{1,4}r|cons|display|for-each|list|map|newline)\>|reverse(\>|!)|set-c[ad]r!)"
|
||||
color lightcyan "\<(boolean|char(-ci)?[<>]?=?|complex|eqv?|even|integer|list|nan|negative|null|number|odd|pair|positive|rational|real|string|symbol|vector|zero)\?"
|
||||
color lightcyan "\<(abs|a?(cos|sin|tan)|ceiling|exp|floor|max|min|modulo|not|random|round|quotient|sqrt|square|truncate)\>"
|
||||
# Defining things
|
||||
color brightgreen "\<define(-macro|-module|-public|-syntax)?\>"
|
||||
# Quoted symbols
|
||||
color lightyellow "'(\w|[!$%&*+/:<=>?@^_~])(\w|[!$%&*+/:<=>?@^_~.0-9-])*"
|
||||
# Characters
|
||||
color brightmagenta "#\\(.|\w+)"
|
||||
# Booleans
|
||||
color brightred "#(t|true|f|false)\>"
|
||||
# Keywords
|
||||
color lagoon "#?:(\w|[?-])+"
|
||||
# Strings
|
||||
color yellow start="^[[:blank:]]*"([^"\]|\\.)*$" end="(^|[^\]|[^\]\\\\)""
|
||||
color yellow ""([^"\]|\\.)*""
|
||||
# Comments
|
||||
color italic,#aaa "(^|[[:blank:]]);.*"
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue