Initial commit
This commit is contained in:
commit
1eb8f49be2
20 changed files with 378 additions and 0 deletions
1
.emacs.d/.lsp-session-v1
Normal file
1
.emacs.d/.lsp-session-v1
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
#s(lsp-session ("/Users/tobi/Exercism/swift/grade-school" "/Users/tobi/Exercism/swift/lasagna-master" "/Users/tobi/Exercism/swift/secret-agent" "/Users/tobi/Exercism/swift/freelancer-rates" "/Users/tobi/Exercism/swift/custom-signs" "/Users/tobi/Exercism/swift/hello-world" "/Users/tobi/Code/Swift-Katas/Primes_in_Numbers") nil #s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8125 data ()) #s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8125 data ()) #s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8125 data ()))
|
||||||
2
.emacs.d/auto-save-list/.saves-35010-TobAir~
Normal file
2
.emacs.d/auto-save-list/.saves-35010-TobAir~
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
/Users/tobi/TobCloud/dotfiles/.gitignore
|
||||||
|
/var/folders/0h/8fqvf7nd2xn38__142t5f4t40000gn/T/#!Users!tobi!TobCloud!dotfiles!.gitignore#
|
||||||
30
.emacs.d/bookmarks
Normal file
30
.emacs.d/bookmarks
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
;;;; Emacs Bookmark Format Version 1;;;; -*- coding: utf-8-emacs; mode: lisp-data -*-
|
||||||
|
;;; This format is meant to be slightly human-readable;
|
||||||
|
;;; nevertheless, you probably don't want to edit it.
|
||||||
|
;;; -*- End Of Bookmark File Format Version Stamp -*-
|
||||||
|
(("bookmarks.org"
|
||||||
|
(filename . "~/TobCloud/org/bookmarks.org")
|
||||||
|
(front-context-string . "#+TITLE: Bookmar")
|
||||||
|
(rear-context-string)
|
||||||
|
(position . 1))
|
||||||
|
(".tobmacs"
|
||||||
|
(filename . "~/.tobmacs/")
|
||||||
|
(front-context-string . ".lsp-session-v1\n")
|
||||||
|
(rear-context-string . "31 Oct 21 11:44 ")
|
||||||
|
(position . 223))
|
||||||
|
("exercism"
|
||||||
|
(filename . "~/Exercism/swift/")
|
||||||
|
(front-context-string . ".DS_Store\n drwx")
|
||||||
|
(rear-context-string . "48 Oct 19 20:28 ")
|
||||||
|
(position . 229))
|
||||||
|
("logseq"
|
||||||
|
(filename . "~/Library/Mobile Documents/iCloud~com~logseq~logseq/Documents/")
|
||||||
|
(front-context-string . ".Trash\n -rw-r--")
|
||||||
|
(rear-context-string . "64 Sep 30 12:10 ")
|
||||||
|
(position . 272))
|
||||||
|
("inbox.org"
|
||||||
|
(filename . "~/TobCloud/org/inbox.org")
|
||||||
|
(front-context-string)
|
||||||
|
(rear-context-string)
|
||||||
|
(position . 16))
|
||||||
|
)
|
||||||
21
.emacs.d/early-init.el
Normal file
21
.emacs.d/early-init.el
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
(setq gc-cons-threshold (* 50 1000 1000))
|
||||||
|
|
||||||
|
(customize-set-variable 'load-prefer-newer noninteractive)
|
||||||
|
|
||||||
|
(when (featurep 'native-compile)
|
||||||
|
(setq native-comp-async-report-warnings-errors nil)
|
||||||
|
(setq native-comp-deferred-compilation t)
|
||||||
|
(when (fboundp 'start-redirect-eln-cache)
|
||||||
|
(if (version< emacs-version "29")
|
||||||
|
(add-to-list 'native-comp-eln-load-path (convert-standard-filename (expand-file-name "var/eln-cache/" user-emacs-directory)))
|
||||||
|
(startup-redirect-eln-cache (convert-standard-filename (expand-file-name "var/eln-cache/" user-emacs-directory))))))
|
||||||
|
|
||||||
|
(setq inhibit-startup-message t)
|
||||||
|
(push '(tool-bar-lines . 0) default-frame-alist)
|
||||||
|
(push '(menu-bar-lines . 0) default-frame-alist)
|
||||||
|
(push '(vertical-scroll-bars) default-frame-alist)
|
||||||
|
(push '(mouse-color . "white") default-frame-alist)
|
||||||
|
|
||||||
|
;; (load-theme 'modus-vivendi)
|
||||||
|
|
||||||
|
(customize-set-variable 'initial-major-mode 'fundamental-mode)
|
||||||
20
.emacs.d/eshell/history
Normal file
20
.emacs.d/eshell/history
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
ls
|
||||||
|
touch new-file
|
||||||
|
cd Downloads/
|
||||||
|
git clone https://github.com/objcio/S01E320-custom-components-introduction.git
|
||||||
|
pwd
|
||||||
|
cd Desktop/
|
||||||
|
git clone https://github.com/doomemacs/doomemacs.git
|
||||||
|
cd doomemacs/
|
||||||
|
grep flycheck-clj-kondo
|
||||||
|
grep flycheck
|
||||||
|
cd ../..
|
||||||
|
exercism submit Sources/GradeSchool/GradeSchool.swift
|
||||||
|
swift package init
|
||||||
|
less Sources/day1/day1.swift
|
||||||
|
cd
|
||||||
|
cd TobCloud/org/
|
||||||
|
ls
|
||||||
|
rm *
|
||||||
|
ls
|
||||||
|
ls
|
||||||
10
.emacs.d/eshell/lastdir
Normal file
10
.emacs.d/eshell/lastdir
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
/Users/tobi/Downloads
|
||||||
|
~
|
||||||
|
/Users/tobi/Desktop
|
||||||
|
/Users/tobi/Desktop/doomemacs
|
||||||
|
/Users/tobi/Exercism/swift/grade-school/Sources/GradeSchool
|
||||||
|
/Users/tobi/Exercism/swift/grade-school
|
||||||
|
~/Code/AOC/day1
|
||||||
|
/Users/tobi/Code/AOC/aoc2022/src/aoc2022
|
||||||
|
/Users/tobi
|
||||||
|
/Users/tobi/TobCloud/org
|
||||||
21
.emacs.d/history
Normal file
21
.emacs.d/history
Normal file
File diff suppressed because one or more lines are too long
81
.emacs.d/init.el
Normal file
81
.emacs.d/init.el
Normal file
|
|
@ -0,0 +1,81 @@
|
||||||
|
(add-hook 'emacs-startup-hook
|
||||||
|
(lambda ()
|
||||||
|
(message "tobmacs loaded in %s."
|
||||||
|
(emacs-init-time))))
|
||||||
|
|
||||||
|
(set-default-coding-systems 'utf-8)
|
||||||
|
(customize-set-variable 'visible-bell 1)
|
||||||
|
(customize-set-variable 'large-file-warning-threshold 100000000)
|
||||||
|
|
||||||
|
(add-to-list 'load-path (expand-file-name "modules/" user-emacs-directory))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
(set-face-attribute 'default nil :font "Iosevka Comfy" :height 140)
|
||||||
|
(set-face-attribute 'variable-pitch nil :font "Iosevka" :height 140)
|
||||||
|
(setq-default line-spacing 0.2)
|
||||||
|
|
||||||
|
(add-to-list 'native-comp-eln-load-path (expand-file-name "eln-cache/" user-emacs-directory))
|
||||||
|
|
||||||
|
(setq modus-themes-variable-pitch-headings t
|
||||||
|
modus-themes-org-blocks 'tinted-background
|
||||||
|
modus-themes-bold-constructs t
|
||||||
|
modus-themes-italic-constructs t
|
||||||
|
modus-themes-scale-headings t
|
||||||
|
modus-themes-completions 'opinionated
|
||||||
|
modus-themes-mode-line '(accented borderless))
|
||||||
|
|
||||||
|
(load-theme 'modus-vivendi)
|
||||||
|
|
||||||
|
(setq package-archives
|
||||||
|
'(("elpa" . "https://elpa.gnu.org/packages/")
|
||||||
|
("elpa-devel" . "https://elpa.gnu.org/devel/")
|
||||||
|
("nongnu" . "https://elpa.nongnu.org/nongnu/")
|
||||||
|
("melpa" . "https://melpa.org/packages/")))
|
||||||
|
|
||||||
|
(setq package-archive-priorities
|
||||||
|
'(("elpa" . 2)
|
||||||
|
("nongnu" . 1)))
|
||||||
|
|
||||||
|
(package-initialize)
|
||||||
|
(unless package-archive-contents
|
||||||
|
(package-refresh-contents))
|
||||||
|
|
||||||
|
(unless (package-installed-p 'use-package)
|
||||||
|
(package-install 'use-package))
|
||||||
|
|
||||||
|
(require 'use-package)
|
||||||
|
(setq use-package-always-ensure t)
|
||||||
|
|
||||||
|
(use-package exec-path-from-shell)
|
||||||
|
|
||||||
|
(when (memq window-system '(mac ns x))
|
||||||
|
(exec-path-from-shell-initialize))
|
||||||
|
|
||||||
|
(require 'tobmacs-completion)
|
||||||
|
(require 'tobmacs-org)
|
||||||
|
(require 'tobmacs-editor)
|
||||||
|
(require 'tobmacs-vc)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
(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.
|
||||||
|
'(custom-safe-themes
|
||||||
|
'("183dfa34e360f5bc2ee4a6b3f4236e6664f4cfce40de1d43c984e0e8fc5b51ae" "92d350334df87fe61a682518ff214c773625c6d5ace8060d128adc550bc60c9b" default))
|
||||||
|
'(package-selected-packages
|
||||||
|
'(dumb-jump dump-jump ef-themes avy electric-pair-mode electric-pair smartparens lsp-sourcekit lsp-mode swift-mode clj-refactor corfu magit projectile projectile-mode rainbow-delimiters parinfer-rust-mode cider modus-themes org-modern marginalia orderless vertico exec-path-from-shell 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.
|
||||||
|
)
|
||||||
27
.emacs.d/modules/tobmacs-completion.el
Normal file
27
.emacs.d/modules/tobmacs-completion.el
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
(use-package vertico
|
||||||
|
:init
|
||||||
|
(vertico-mode))
|
||||||
|
|
||||||
|
(use-package savehist
|
||||||
|
:init
|
||||||
|
(savehist-mode))
|
||||||
|
|
||||||
|
(use-package orderless
|
||||||
|
:custom
|
||||||
|
(completion-styles '(orderless basic))
|
||||||
|
(completion-category-overrides '((file (styles basic partial-completion)))))
|
||||||
|
|
||||||
|
(use-package marginalia
|
||||||
|
:init
|
||||||
|
(marginalia-mode))
|
||||||
|
|
||||||
|
(use-package corfu
|
||||||
|
:custom
|
||||||
|
(corfu-cycle t)
|
||||||
|
(corfu-preselect-first nil)
|
||||||
|
(corfu-auto t)
|
||||||
|
:init
|
||||||
|
(global-corfu-mode))
|
||||||
|
|
||||||
|
|
||||||
|
(provide 'tobmacs-completion)
|
||||||
49
.emacs.d/modules/tobmacs-editor.el
Normal file
49
.emacs.d/modules/tobmacs-editor.el
Normal file
|
|
@ -0,0 +1,49 @@
|
||||||
|
(setq-default indent-tabs-mode nil)
|
||||||
|
|
||||||
|
(add-hook 'prog-mode-hook 'mac-auto-operator-composition-mode)
|
||||||
|
|
||||||
|
(use-package emacs
|
||||||
|
:config
|
||||||
|
(global-auto-revert-mode)
|
||||||
|
(minibuffer-electric-default-mode 1)
|
||||||
|
|
||||||
|
(setq isearch-allow-motion t
|
||||||
|
sentence-end-double-space nil
|
||||||
|
backup-directory-alist `((".*" . ,temporary-file-directory))
|
||||||
|
auto-save-file-name-transforms `((".*" ,temporary-file-directory t))
|
||||||
|
delete-by-moving-to-trash t
|
||||||
|
tab-bar-show nil
|
||||||
|
tab-bar-new-tab-choice "*scratch*"
|
||||||
|
next-line-add-newlines))
|
||||||
|
|
||||||
|
|
||||||
|
(use-package ef-themes)
|
||||||
|
|
||||||
|
(use-package parinfer-rust-mode
|
||||||
|
:hook (emacs-lisp-mode clojure-mode)
|
||||||
|
:init
|
||||||
|
(setq parinfer-rust-library (expand-file-name
|
||||||
|
"parinfer-rust/parinfer-rust-darwin.so"
|
||||||
|
user-emacs-directory)))
|
||||||
|
|
||||||
|
(use-package electric
|
||||||
|
:hook swift-mode)
|
||||||
|
|
||||||
|
(use-package rainbow-delimiters)
|
||||||
|
|
||||||
|
(use-package flycheck
|
||||||
|
:init
|
||||||
|
(global-flycheck-mode))
|
||||||
|
|
||||||
|
(use-package avy
|
||||||
|
:bind
|
||||||
|
("M-j" . 'avy-goto-char-timer))
|
||||||
|
|
||||||
|
(use-package dumb-jump
|
||||||
|
:config
|
||||||
|
(add-hook 'xref-backend-functions #'dumb-jump-xref-activate)
|
||||||
|
(setq xref-show-definitions-function #'xref-show-definitions-completing-read))
|
||||||
|
|
||||||
|
(provide 'tobmacs-editor)
|
||||||
|
|
||||||
|
|
||||||
48
.emacs.d/modules/tobmacs-editor.el~
Normal file
48
.emacs.d/modules/tobmacs-editor.el~
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
inq(setq-default indent-tabs-mode nil)
|
||||||
|
|
||||||
|
(add-hook 'prog-mode-hook 'mac-auto-operator-composition-mode)
|
||||||
|
|
||||||
|
(use-package emacs
|
||||||
|
:config
|
||||||
|
(global-auto-revert-mode)
|
||||||
|
(minibuffer-electric-default-mode 1)
|
||||||
|
|
||||||
|
(setq isearch-allow-motion t
|
||||||
|
sentence-end-double-space nil
|
||||||
|
backup-directory-alist `((".*" . ,temporary-file-directory))
|
||||||
|
auto-save-file-name-transforms `((".*" ,temporary-file-directory t))
|
||||||
|
delete-by-moving-to-trash t
|
||||||
|
tab-bar-show nil
|
||||||
|
tab-bar-new-tab-choice "*scratch*"))
|
||||||
|
|
||||||
|
|
||||||
|
(use-package ef-themes)
|
||||||
|
|
||||||
|
(use-package parinfer-rust-mode
|
||||||
|
:hook (emacs-lisp-mode clojure-mode)
|
||||||
|
:init
|
||||||
|
(setq parinfer-rust-library (expand-file-name
|
||||||
|
"parinfer-rust/parinfer-rust-darwin.so"
|
||||||
|
user-emacs-directory)))
|
||||||
|
|
||||||
|
(use-package electric
|
||||||
|
:hook swift-mode)
|
||||||
|
|
||||||
|
(use-package rainbow-delimiters)
|
||||||
|
|
||||||
|
(use-package flycheck
|
||||||
|
:init
|
||||||
|
(global-flycheck-mode))
|
||||||
|
|
||||||
|
(use-package avy
|
||||||
|
:bind
|
||||||
|
("M-j" . 'avy-goto-char-timer))
|
||||||
|
|
||||||
|
(use-package dumb-jump
|
||||||
|
:config
|
||||||
|
(add-hook 'xref-backend-functions #'dumb-jump-xref-activate)
|
||||||
|
(setq xref-show-definitions-function #'xref-show-definitions-completing-read))
|
||||||
|
|
||||||
|
(provide 'tobmacs-editor)
|
||||||
|
|
||||||
|
|
||||||
31
.emacs.d/modules/tobmacs-languages.el
Normal file
31
.emacs.d/modules/tobmacs-languages.el
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
(use-package cider)
|
||||||
|
|
||||||
|
;; Clojure
|
||||||
|
|
||||||
|
(use-package clojure-mode
|
||||||
|
:config
|
||||||
|
(require 'flycheck-clj-kondo))
|
||||||
|
|
||||||
|
(use-package flycheck-clj-kondo)
|
||||||
|
|
||||||
|
(use-package clj-refactor
|
||||||
|
:init
|
||||||
|
(add-hook 'clojure-mode-hook 'clj-refactor-mode))
|
||||||
|
|
||||||
|
;; LSP
|
||||||
|
|
||||||
|
(use-package lsp-mode
|
||||||
|
:hook (swift-mode . lsp)
|
||||||
|
:commands lsp)
|
||||||
|
|
||||||
|
;; Swift
|
||||||
|
|
||||||
|
(use-package swift-mode)
|
||||||
|
|
||||||
|
(use-package lsp-sourcekit
|
||||||
|
:after lsp-mode
|
||||||
|
:config
|
||||||
|
(setq lsp-sourcekit-executable "/Library/Developer/CommandLineTools/usr/bin/sourcekit-lsp"))
|
||||||
|
|
||||||
|
|
||||||
|
(provide 'tobmacs-languages)
|
||||||
10
.emacs.d/modules/tobmacs-org.el
Normal file
10
.emacs.d/modules/tobmacs-org.el
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
(setq org-pretty-entities t
|
||||||
|
org-hide-emphasis-markers t
|
||||||
|
org-startup-with-inline-images t)
|
||||||
|
|
||||||
|
(use-package org-modern
|
||||||
|
:init
|
||||||
|
(global-org-modern-mode))
|
||||||
|
|
||||||
|
(provide 'tobmacs-org)
|
||||||
|
|
||||||
4
.emacs.d/modules/tobmacs-vc.el
Normal file
4
.emacs.d/modules/tobmacs-vc.el
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
(use-package magit
|
||||||
|
:defer t)
|
||||||
|
|
||||||
|
(provide 'tobmacs-vc)
|
||||||
BIN
.emacs.d/parinfer-rust/parinfer-rust-darwin.so
Normal file
BIN
.emacs.d/parinfer-rust/parinfer-rust-darwin.so
Normal file
Binary file not shown.
2
.emacs.d/projects
Normal file
2
.emacs.d/projects
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
;;; -*- lisp-data -*-
|
||||||
|
(("~/Code/learn-reitit/"))
|
||||||
5
.emacs.d/transient/history.el
Normal file
5
.emacs.d/transient/history.el
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
((magit-commit nil)
|
||||||
|
(magit-dispatch nil)
|
||||||
|
(magit-gitignore nil)
|
||||||
|
(magit-log
|
||||||
|
("-n256" "--graph" "--decorate")))
|
||||||
14
.emacs.d/url/cookies
Normal file
14
.emacs.d/url/cookies
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
;; Emacs-W3 HTTP cookies file
|
||||||
|
;; Automatically generated file!!! DO NOT EDIT!!!
|
||||||
|
|
||||||
|
(setq url-cookie-storage
|
||||||
|
'nil)
|
||||||
|
(setq url-cookie-secure-storage
|
||||||
|
'((".google.com"
|
||||||
|
[url-cookie "AEC" "AakniGNZ2QzZ_5BfdcNUoyXkDUU9Z6Te6D9fiXScuWGM-Na5ehFAUjzVBNc" "Thu, 30-Mar-2023 07:30:41 GMT" "/" ".google.com" t]))
|
||||||
|
)
|
||||||
|
|
||||||
|
;; Local Variables:
|
||||||
|
;; version-control: never
|
||||||
|
;; no-byte-compile: t
|
||||||
|
;; End:
|
||||||
0
.emacs.d/url/cookies~
Normal file
0
.emacs.d/url/cookies~
Normal file
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
**/eln-cache
|
||||||
|
**/elpa
|
||||||
Loading…
Add table
Add a link
Reference in a new issue