diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2022-10-03 12:36:00 +0200 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2023-12-12 23:30:24 +0100 |
| commit | 02236e7bfcd2a434d9d8ac19ebaf563790d0c376 (patch) | |
| tree | a8883194ab6f2a94a1d1f33f7dff93ae74397506 | |
| parent | c3f0dac831dd3110dfc610edb1a7ccc8b3b4622e (diff) | |
Setup for codespaces and Emacs config tweaks
| -rw-r--r-- | .gitignore | 4 | ||||
| -rw-r--r-- | config/alacritty/alacritty.yml | 13 | ||||
| -rw-r--r-- | config/emacs/init.el | 9 | ||||
| -rwxr-xr-x | install.sh | 7 |
4 files changed, 15 insertions, 18 deletions
@@ -1,3 +1 @@ -.netrwhist -custom.el -packer_compiled.* +config/emacs/eln-cache/ diff --git a/config/alacritty/alacritty.yml b/config/alacritty/alacritty.yml deleted file mode 100644 index 7648fe1..0000000 --- a/config/alacritty/alacritty.yml +++ /dev/null @@ -1,13 +0,0 @@ -font: - normal: - family: SFMono Nerd Font Mono - style: Regular - bold: - family: SFMono Nerd Font Mono - style: Bold - italic: - family: SFMono Nerd Font Mono - style: Italic - bold_italic: - family: SFMono Nerd Font Mono - style: Bold Italic diff --git a/config/emacs/init.el b/config/emacs/init.el index f383c89..024e255 100644 --- a/config/emacs/init.el +++ b/config/emacs/init.el @@ -25,7 +25,8 @@ (require 'package) (setq package-enable-at-startup nil - package-user-dir "~/.cache/emacs/elpa/") + package-user-dir "~/.cache/emacs/elpa/" + package-gnupghome-dir "~/.cache/emacs/elpa/gnupg") (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) (unless package--initialized (package-initialize)) @@ -45,3 +46,9 @@ (unless (file-exists-p custom-file) (write-region "" nil custom-file)) (load custom-file nil t) + +;;; TODO(nlordell): +;;; 1. Setup `which-keys` for command discoverability +;;; 2. Move `eln-cache`, this requires `startup-redirect-eln-cache` which will +;;; only become available in Emacs v29+ +;;; 3. Try out `meow` modal editing mode @@ -22,16 +22,21 @@ gitinst() { if [[ ! -e "$2" ]]; then local remote="[email protected]:$1.git" git clone "$remote" "$2" + else + echo "skipping $1: '$2' already exists." >&2 fi } mkdir -p "$HOME/.config" -dotlink "config/alacritty" dotlink "config/emacs" dotlink "config/nvim" gitinst \ "wbthomason/packer.nvim" \ "$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim" +if [ "$CODESPACES" = true ]; then + # TODO(nlordell): Codespaces specific setup. +fi + nvim --headless -c "autocmd User PackerComplete quitall" -c "PackerSync" |
