.el files clean-up
Vim plugin(s) configuration on-progress
This commit is contained in:
parent
0949c40f47
commit
b5debb0c83
4 changed files with 81 additions and 77 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
history
|
||||||
|
*.swp
|
||||||
|
|
||||||
|
|
@ -1,11 +1,7 @@
|
||||||
;;; -*- lexical-binding: t -*-
|
;;; early-init.el --- -*- lexical-binding:t -*-
|
||||||
;;; Emacs Bedrock (early-init.el)
|
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
;;;
|
;;; Basic settings for quick startup and convenience
|
||||||
;;; Basic settings for quick startup and convenience
|
|
||||||
;;;
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
|
|
||||||
;; Startup speed, annoyance suppression
|
;; Startup speed, annoyance suppression
|
||||||
(setq bedrock--initial-gc-threshold gc-cons-threshold)
|
(setq bedrock--initial-gc-threshold gc-cons-threshold)
|
||||||
|
|
@ -26,8 +22,9 @@
|
||||||
;(setq frame-resize-pixelwise t)
|
;(setq frame-resize-pixelwise t)
|
||||||
;(setq window-resize-pixelwise t)
|
;(setq window-resize-pixelwise t)
|
||||||
|
|
||||||
(when (fboundp 'tool-bar-mode) ; When in a GUI, disable tool bar;
|
;; Hides tool bar and menu bar
|
||||||
(tool-bar-mode -1)) ; all these tools are in the menu-bar anyway
|
(tool-bar-mode -1)
|
||||||
|
(menu-bar-mode -1)
|
||||||
|
|
||||||
;; These settings apply to *all* frames.
|
;; These settings apply to *all* frames.
|
||||||
(setq default-frame-alist '(
|
(setq default-frame-alist '(
|
||||||
|
|
@ -50,3 +47,5 @@
|
||||||
;; color as the theme gets activated
|
;; color as the theme gets activated
|
||||||
(background-color . "#000000")
|
(background-color . "#000000")
|
||||||
(foreground-color . "#ffffff")))
|
(foreground-color . "#ffffff")))
|
||||||
|
|
||||||
|
;; end of early-init.el file
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,13 @@
|
||||||
;;; -*- lexical-binding: t -*-
|
;;; init.el --- -*- lexical-binding:t -*-
|
||||||
;;; Emacs Bedrock (init.el)
|
|
||||||
;;; - Basic settings
|
|
||||||
;;; - Discovery aids
|
|
||||||
;;; - Minibuffer/completion/searching settings
|
|
||||||
;;; - Interface enhancements/defaults
|
|
||||||
;;; - Tab-bar configuration
|
|
||||||
;;; - Theme
|
|
||||||
;;; - Optional extras
|
|
||||||
;;; - Built-in customization framework
|
|
||||||
|
|
||||||
;;; Guardrail
|
|
||||||
|
;;; Guardrail -----
|
||||||
|
|
||||||
(when (< emacs-major-version 31)
|
(when (< emacs-major-version 31)
|
||||||
(error "Emacs Bedrock only works with Emacs 31 and newer; you have version %s" emacs-major-version))
|
(error "Emacs Bedrock only works with Emacs 31 and newer; you have version %s" emacs-major-version))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
;;;
|
;;; Basic settings -----
|
||||||
;;; Basic settings
|
|
||||||
;;;
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
|
|
||||||
;; Package initialization
|
;; Package initialization
|
||||||
;;
|
;;
|
||||||
|
|
@ -123,15 +112,11 @@ If the new path's directories does not exist, create them."
|
||||||
(setq bidi-inhibit-bpa t)
|
(setq bidi-inhibit-bpa t)
|
||||||
|
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;; Discovery aids -----
|
||||||
;;;
|
|
||||||
;;; Discovery aids
|
|
||||||
;;;
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
|
|
||||||
;; Show the help buffer after startup---makes it a little bit like nano.
|
;; 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'.
|
;; You can open and dismiss this buffer with `C-h C-q'.
|
||||||
(add-hook 'after-init-hook 'help-quick)
|
;(add-hook 'after-init-hook 'help-quick)
|
||||||
|
|
||||||
(setopt view-lossage-auto-refresh t)
|
(setopt view-lossage-auto-refresh t)
|
||||||
|
|
||||||
|
|
@ -141,11 +126,8 @@ If the new path's directories does not exist, create them."
|
||||||
:config
|
:config
|
||||||
(which-key-mode))
|
(which-key-mode))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
;;;
|
;;; Minibuffer/completion/searching settings -----
|
||||||
;;; Minibuffer/completion/searching settings
|
|
||||||
;;;
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
|
|
||||||
;; For help, see: https://www.masteringemacs.org/article/understanding-minibuffer-completion
|
;; For help, see: https://www.masteringemacs.org/article/understanding-minibuffer-completion
|
||||||
|
|
||||||
|
|
@ -179,7 +161,6 @@ If the new path's directories does not exist, create them."
|
||||||
;(fido-vertical-mode)
|
;(fido-vertical-mode)
|
||||||
;(setopt icomplete-delay-completions-threshold 4000)
|
;(setopt icomplete-delay-completions-threshold 4000)
|
||||||
|
|
||||||
|
|
||||||
;; isearch is Emacs's built-in searching system
|
;; isearch is Emacs's built-in searching system
|
||||||
(use-package isearch
|
(use-package isearch
|
||||||
:ensure nil ; already installed
|
:ensure nil ; already installed
|
||||||
|
|
@ -195,11 +176,8 @@ If the new path's directories does not exist, create them."
|
||||||
(isearch-wrap-pause 'no-ding) ; Automatically wrap search to top
|
(isearch-wrap-pause 'no-ding) ; Automatically wrap search to top
|
||||||
)
|
)
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
;;;
|
;;; Interface enhancements/defaults -----
|
||||||
;;; Interface enhancements/defaults
|
|
||||||
;;;
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
|
|
||||||
;; Mode line information
|
;; Mode line information
|
||||||
(setopt line-number-mode t) ; Show current line in modeline
|
(setopt line-number-mode t) ; Show current line in modeline
|
||||||
|
|
@ -241,6 +219,7 @@ If the new path's directories does not exist, create them."
|
||||||
|
|
||||||
;; Display line numbers in programming mode
|
;; Display line numbers in programming mode
|
||||||
(add-hook 'prog-mode-hook 'display-line-numbers-mode)
|
(add-hook 'prog-mode-hook 'display-line-numbers-mode)
|
||||||
|
(setq display-line-numbers-type 'relative)
|
||||||
(setopt display-line-numbers-width 3) ; Set a minimum width
|
(setopt display-line-numbers-width 3) ; Set a minimum width
|
||||||
|
|
||||||
;; Nice line wrapping when working with text
|
;; Nice line wrapping when working with text
|
||||||
|
|
@ -259,11 +238,8 @@ If the new path's directories does not exist, create them."
|
||||||
(setopt show-paren-style 'expression) ; default is 'parenthesis and just does delimiters
|
(setopt show-paren-style 'expression) ; default is 'parenthesis and just does delimiters
|
||||||
(setopt show-paren-context-when-offscreen 'overlay)
|
(setopt show-paren-context-when-offscreen 'overlay)
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
;;;
|
;;; Tab-bar configuration -----
|
||||||
;;; Tab-bar configuration
|
|
||||||
;;;
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
|
|
||||||
;; Show the tab-bar as soon as tab-bar functions are invoked
|
;; Show the tab-bar as soon as tab-bar functions are invoked
|
||||||
(setopt tab-bar-show 1)
|
(setopt tab-bar-show 1)
|
||||||
|
|
@ -298,21 +274,15 @@ If the new path's directories does not exist, create them."
|
||||||
:bind (:map global-map
|
:bind (:map global-map
|
||||||
("C-c C-t" . tab-bar-transient)))
|
("C-c C-t" . tab-bar-transient)))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
;;;
|
;;; Theme -----
|
||||||
;;; Theme
|
|
||||||
;;;
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
|
|
||||||
(use-package emacs
|
(use-package emacs
|
||||||
:config
|
:config
|
||||||
(load-theme 'modus-vivendi-tinted)) ; for light theme, use modus-operandi
|
(load-theme 'modus-vivendi-tinted)) ; for light theme, use modus-operandi
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
;;;
|
;;; Optional extras -----
|
||||||
;;; Optional extras
|
|
||||||
;;;
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
|
|
||||||
;; Uncomment the (load-file …) lines or copy code from the extras/ elisp files
|
;; Uncomment the (load-file …) lines or copy code from the extras/ elisp files
|
||||||
;; as desired
|
;; as desired
|
||||||
|
|
@ -343,11 +313,8 @@ If the new path's directories does not exist, create them."
|
||||||
;; Tools for academic researchers
|
;; Tools for academic researchers
|
||||||
;(load-file (expand-file-name "extras/researcher.el" user-emacs-directory))
|
;(load-file (expand-file-name "extras/researcher.el" user-emacs-directory))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
;;;
|
;;; Built-in customization framework -----
|
||||||
;;; Built-in customization framework
|
|
||||||
;;;
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
|
|
||||||
(custom-set-variables
|
(custom-set-variables
|
||||||
;; custom-set-variables was added by Custom.
|
;; custom-set-variables was added by Custom.
|
||||||
|
|
@ -367,3 +334,5 @@ If the new path's directories does not exist, create them."
|
||||||
)
|
)
|
||||||
|
|
||||||
(setq gc-cons-threshold (or bedrock--initial-gc-threshold 800000))
|
(setq gc-cons-threshold (or bedrock--initial-gc-threshold 800000))
|
||||||
|
|
||||||
|
;; end of init.el file
|
||||||
|
|
|
||||||
61
vim/.vimrc
61
vim/.vimrc
|
|
@ -1,7 +1,7 @@
|
||||||
" This `.vimrc' is written for configuring `vim-classic', an LTS release of
|
" This `.vimrc' is written for configuring `vim-classic', an LTS release of
|
||||||
" Vim 8. YMMV if using a newer release of Vim.
|
" Vim 8. YMMV if using a newer release of Vim.
|
||||||
|
|
||||||
" options
|
" Vim options (alphabetical) -----
|
||||||
set background=dark
|
set background=dark
|
||||||
set cursorline
|
set cursorline
|
||||||
set expandtab
|
set expandtab
|
||||||
|
|
@ -12,8 +12,10 @@ set laststatus=2
|
||||||
set listchars=eol:$,tab:»\ ,trail:~,extends:>,precedes:<,space:·
|
set listchars=eol:$,tab:»\ ,trail:~,extends:>,precedes:<,space:·
|
||||||
set mouse=a
|
set mouse=a
|
||||||
set number
|
set number
|
||||||
|
set omnifunc=syntaxcomplete#Complete " omnicomplete (^X^O)
|
||||||
set relativenumber
|
set relativenumber
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
|
set showcmd
|
||||||
set sj=-50 " jumpy scrolling (like Emacs)
|
set sj=-50 " jumpy scrolling (like Emacs)
|
||||||
set smartcase
|
set smartcase
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
|
|
@ -22,30 +24,61 @@ set nocopyindent
|
||||||
set noswapfile
|
set noswapfile
|
||||||
set noundofile
|
set noundofile
|
||||||
|
|
||||||
" vim-plug
|
" vim-plug -----
|
||||||
call plug#begin('~/.vim/plugged')
|
call plug#begin('~/.vim/plugged')
|
||||||
|
" quality-of-life -----
|
||||||
Plug 'tpope/vim-sensible'
|
Plug 'tpope/vim-sensible'
|
||||||
Plug 'tpope/vim-sleuth'
|
Plug 'tpope/vim-sleuth'
|
||||||
Plug 'tpope/vim-commentary'
|
Plug 'tpope/vim-commentary'
|
||||||
Plug 'ThunderBoltCODMYT/gruber-darker.vim'
|
|
||||||
let g:gruber_contrast = 'soft'
|
" visual -----
|
||||||
|
Plug 'junegunn/seoul256.vim'
|
||||||
|
let g:seoul256_background = 233
|
||||||
|
let g:seoul256_light_background = 253
|
||||||
|
|
||||||
|
Plug 'itchyny/vim-gitbranch'
|
||||||
|
Plug 'itchyny/lightline.vim'
|
||||||
|
let g:lightline =
|
||||||
|
\ { 'colorscheme': 'seoul256'
|
||||||
|
\ , 'active' : { 'left': [ [ 'paste' ]
|
||||||
|
\ , [ 'filename'
|
||||||
|
\ , 'gitbranch'
|
||||||
|
\ , 'readonly'
|
||||||
|
\ , 'modified' ] ] }
|
||||||
|
\ , 'component_function': { 'gitbranch': 'gitbranch#name' } }
|
||||||
|
|
||||||
Plug 'luochen1990/rainbow'
|
Plug 'luochen1990/rainbow'
|
||||||
|
let g:rainbow_conf =
|
||||||
|
\ { 'separately': { '*' : 0
|
||||||
|
\ , 'lisp' : 'default'
|
||||||
|
\ , 'clojure': 'default'
|
||||||
|
\ , 'scheme' : 'default'
|
||||||
|
\ , 'racket' : 'default' } }
|
||||||
|
augroup always_load_rainbow
|
||||||
|
autocmd!
|
||||||
|
autocmd ColorScheme * let g:rainbow_active = 1
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
" languages -----
|
||||||
Plug 'LnL7/vim-nix'
|
Plug 'LnL7/vim-nix'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
" `vim-plug' automatically initialises `filetype plugin indent on'
|
||||||
" rainbow s-expressions + fix
|
|
||||||
augroup fix_rainbow
|
|
||||||
autocmd!
|
|
||||||
autocmd ColorScheme * let g:rainbow_active = 1
|
|
||||||
augroup END
|
|
||||||
|
|
||||||
" colorscheme
|
|
||||||
colorscheme gruber-darker
|
|
||||||
|
|
||||||
" set leader key to space
|
" set leader key to space
|
||||||
nnoremap <SPACE> <Nop>
|
nnoremap <SPACE> <Nop>
|
||||||
let mapleader = " "
|
let mapleader = " "
|
||||||
|
|
||||||
" copy to system clipboard (Wayland)
|
colorscheme seoul256
|
||||||
|
|
||||||
|
" copy visual selection to system clipboard
|
||||||
|
" (X11)
|
||||||
|
" vnoremap <leader>y :w !xclip -sel clip<CR><CR>
|
||||||
|
" (Wayland)
|
||||||
vnoremap <leader>y :w !wl-copy<CR><CR>
|
vnoremap <leader>y :w !wl-copy<CR><CR>
|
||||||
|
|
||||||
|
" cursor shapes -----
|
||||||
|
let &t_EI = "\e[2 q" " normal : solid block
|
||||||
|
let &t_SI = "\e[6 q" " insert : solid I-beam
|
||||||
|
let &t_SR = "\e[4 q" " replace : solid underscore
|
||||||
|
|
||||||
|
" end of `.vimrc' -----
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue