From d591c97ceb44071c68120d75da6e2ba259575e56 Mon Sep 17 00:00:00 2001 From: oxaliq Date: Fri, 26 Apr 2024 14:03:17 -0400 Subject: [PATCH] mv .spacemacs config --- acetosella/init.el | 78 ------------------------- {asiminia => spacemacs}/.spacemacs | 93 ++++++++++++++++++++++++++---- 2 files changed, 82 insertions(+), 89 deletions(-) delete mode 100644 acetosella/init.el rename {asiminia => spacemacs}/.spacemacs (83%) diff --git a/acetosella/init.el b/acetosella/init.el deleted file mode 100644 index 643fe00..0000000 --- a/acetosella/init.el +++ /dev/null @@ -1,78 +0,0 @@ -(load-theme 'weyland-yutani t) - -;; -- always on modess -(require 'evil) -(evil-mode 1) -(add-hook 'prog-mode-hook - 'display-line-numbers-mode) -(add-hook 'prog-mode-hook - 'undo-tree-mode) -(add-hook 'prog-mode-hook - 'which-key-mode) - -;; -- paredit for lisps -(autoload 'enable-paredit-mode "paredit" - "turn on pseudo-structural editing of lisp code" - t) - -(add-hook 'emacs-lisp-mode-hook - 'enable-paredit-mode) -add-hook 'emacs-lisp-mode-hook - #'rainbow-blocks-mode) - -(add-hook 'lisp-mode-hook - 'enable-paredit-mode) -(add-hook 'lisp-mode-hook - #'rainbow-blocks-mode) - -(add-hook 'eval-expression-minibuffer-setup-hook - 'enable-paredit-mode) -(add-hook 'eval-expression-minibuffer-setup-hook - #'rainbow-blocks-mode) - -(add-hook 'ielm-mode-hook - 'enable-paredit-mode) -(add-hook 'ielm-mode-hook - #'rainbow-blocks-mode) - -(add-hook 'lisp-interaction-mode-hook - 'enable-paredit-mode) -(add-hook 'lisp-interaction-mode-hook - #'rainbow-blocks-mode) - -(add-hook 'scheme-mode-hook - 'enable-paredit-mode) -(add-hook 'scheme-mode-hook - #'rainbow-blocks-mode) - -(add-hook 'racket-mode-hook - 'enable-paredit-mode) -(add-hook 'racket-mode-hook - #'rainbow-blocks-mode) - -(add-hook 'clojure-mode-hook - 'enable-paredit-mode) -(add-hook 'clojure-mode-hook - #'rainbow-blocks-mode) - - -;; -- cider repl -;; REPL history file -(setq cider-repl-history-file "~/.emacs.d/cider-history") -;; nice pretty printing -(setq cider-repl-use-pretty-printing t) -;; nicer font lock in REPL -(setq cider-repl-use-clojure-font-lock t) -;; result prefix for the REPL -(setq cider-repl-result-prefix ";; => ") -;; never ending REPL history -(setq cider-repl-wrap-history t) -;; looong history -(setq cider-repl-history-size 3000) -;; eldoc for clojure -(add-hook 'cider-mode-hook #'eldoc-mode) -;; error buffer not popping up -(setq cider-show-error-buffer nil) -;; use paredit in cider -(add-hook 'cider-repl-mode-hook - 'enable-paredit-mode) diff --git a/asiminia/.spacemacs b/spacemacs/.spacemacs similarity index 83% rename from asiminia/.spacemacs rename to spacemacs/.spacemacs index d635229..5ac3a70 100644 --- a/asiminia/.spacemacs +++ b/spacemacs/.spacemacs @@ -32,8 +32,10 @@ This function should only modify configuration layer settings." ;; List of configuration layers to load. dotspacemacs-configuration-layers - '( - ;; ---------------------------------------------------------------- + '(yaml + protobuf + rust + ;; --------------------------------------------------------------- ;; Example of useful layers you may want to use right away. ;; Uncomment some layer names and press `SPC f e R' (Vim style) or ;; `M-m f e R' (Emacs style) to install them. @@ -41,7 +43,7 @@ This function should only modify configuration layer settings." ;; auto-completion ;; better-defaults emacs-lisp - ;; git + git helm racket clojure @@ -50,9 +52,10 @@ This function should only modify configuration layer settings." html nginx nixos - ;; lsp + lsp markdown multiple-cursors + eww ;; org ;; (shell :variables ;; shell-default-height 30 @@ -71,7 +74,9 @@ This function should only modify configuration layer settings." ;; `dotspacemacs/user-config'. To use a local version of a package, use the ;; `:location' property: '(your-package :location "~/path/to/your-package/") ;; Also include the dependencies as they will not be resolved automatically. - dotspacemacs-additional-packages '(weyland-yutani-theme) + dotspacemacs-additional-packages '(weyland-yutani-theme + gdscript-mode + symex) ;; A list of packages that cannot be updated. dotspacemacs-frozen-packages '() @@ -338,7 +343,7 @@ It should only modify the values of Spacemacs settings." ;; Which-key delay in seconds. The which-key buffer is the popup listing ;; the commands bound to the current keystroke sequence. (default 0.4) - dotspacemacs-which-key-delay 0.4 + dotspacemacs-which-key-delay 0.1 ;; Which-key frame position. Possible values are `right', `bottom' and ;; `right-then-bottom'. right-then-bottom tries to display the frame to the @@ -360,7 +365,7 @@ It should only modify the values of Spacemacs settings." ;; If non-nil a progress bar is displayed when spacemacs is loading. This ;; may increase the boot time on some systems and emacs builds, set it to ;; nil to boost the loading time. (default t) - dotspacemacs-loading-progress-bar t + dotspacemacs-loading-progress-bar nil ;; If non-nil the frame is fullscreen when Emacs starts up. (default nil) ;; (Emacs 24.4+ only) @@ -433,7 +438,7 @@ It should only modify the values of Spacemacs settings." ;; :size-limit-kb 1000) ;; When used in a plist, `visual' takes precedence over `relative'. ;; (default nil) - dotspacemacs-line-numbers nil + dotspacemacs-line-numbers 'relative ;; Code folding method. Possible values are `evil', `origami' and `vimish'. ;; (default 'evil) @@ -514,7 +519,7 @@ It should only modify the values of Spacemacs settings." ;; `trailing' to delete only the whitespace at end of lines, `changed' to ;; delete only whitespace for changed lines or `nil' to disable cleanup. ;; (default nil) - dotspacemacs-whitespace-cleanup nil + dotspacemacs-whitespace-cleanup 'trailing ;; If non-nil activate `clean-aindent-mode' which tries to correct ;; virtual indentation of simple modes. This can interfere with mode specific @@ -577,12 +582,78 @@ dump." (defun dotspacemacs/user-config () "Configuration for user code: -This function is called at the very end of Spacemacs startup, after layer +This function is called at the very end of Spacemacs startup, after layer configuration. Put your configuration code here, except for variables that should be set before packages are loaded." -) + (require 'gdscript-mode) + (use-package symex + :config + (symex-initialize) + (global-set-key (kbd "s-;") 'symex-mode-interface) ; or whatever keybinding you like) + :custom + (symex-modal-backend 'evil)) + (define-key + symex-mode-map + (kbd "s-w") + (lambda () + (interactive) + (execute-kbd-macro (kbd "(")))) + + ;; paredit mode enable + ;; (autoload 'enable-paredit-mode "paredit" "Turn on pseudo-structural editing of Lisp code." t) + ;; (add-hook 'emacs-lisp-mode-hook #'enable-paredit-mode) + ;; (add-hook 'eval-expression-minibuffer-setup-hook #'enable-paredit-mode) + ;; (add-hook 'ielm-mode-hook #'enable-paredit-mode) + ;; (add-hook 'lisp-mode-hook #'enable-paredit-mode) + ;; (add-hook 'lisp-interaction-mode-hook #'enable-paredit-mode) + ;; (add-hook 'scheme-mode-hook #'enable-paredit-mode) + ;; (add-hook 'clojure-mode-hook #'enable-paredit-mode) + ;; (add-hook 'racket-mode-hook #'enable-paredit-mode) + + ;; -- cider repl + ;; REPL history file + (setq cider-repl-history-file "~/.emacs.d/cider-history") + ;; nice pretty printing + (setq cider-repl-use-pretty-printing t) + ;; nicer font lock in REPL + (setq cider-repl-use-clojure-font-lock t) + ;; result prefix for the REPL + (setq cider-repl-result-prefix ";; => ") + ;; never ending REPL history + (setq cider-repl-wrap-history t) + ;; looong history + (setq cider-repl-history-size 3000) + ;; eldoc for clojure + (add-hook 'cider-mode-hook #'eldoc-mode) + ;; error buffer not popping up + (setq cider-show-error-buffer nil) + ;; use paredit in cider + ;; (add-hook 'cider-repl-mode-hook + ;; 'enable-paredit-mode) + + ) ;; Do not write anything past this comment. This is where Emacs will ;; auto-generate custom variable definitions. +(defun dotspacemacs/emacs-custom-settings () + "Emacs custom settings. +This is an auto-generated function, do not modify its content directly, use +Emacs customize menu instead. +This function is called at the very end of Spacemacs initialization." +(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. + '(evil-want-Y-yank-to-eol nil) + '(package-selected-packages + '(forge yaml transient ghub closql emacsql treepy git-link git-messenger git-modes git-timemachine gitignore-templates helm-git-grep helm-ls-git org smeargle treemacs-magit magit git-commit with-editor auto-yasnippet clojure-snippets company-nixos-options company-web web-completion-data flycheck-pos-tip pos-tip helm-c-yasnippet helm-company company helm-lsp lsp-origami origami lsp-treemacs lsp-ui eldoc yasnippet-snippets yasnippet lsp-mode protobuf-mode symex xterm-color ws-butler writeroom-mode winum which-key weyland-yutani-theme web-mode web-beautify volatile-highlights vim-powerline vi-tilde-fringe uuidgen use-package undo-tree treemacs-projectile treemacs-persp treemacs-icons-dired treemacs-evil toc-org terminal-here term-cursor tagedit symon symbol-overlay string-inflection string-edit-at-point spacemacs-whitespace-cleanup spacemacs-purpose-popwin spaceline space-doc slim-mode shell-pop scss-mode sass-mode restart-emacs request rainbow-delimiters racket-mode quickrun pug-mode prettier-js popwin pcre2el password-generator paradox overseer org-superstar open-junk-file nix-mode nginx-mode nameless multi-vterm multi-term multi-line markdown-toc macrostep lorem-ipsum link-hint inspector info+ indent-guide impatient-mode hybrid-mode hungry-delete holy-mode hl-todo highlight-parentheses highlight-numbers highlight-indentation hide-comnt helm-xref helm-themes helm-swoop helm-purpose helm-projectile helm-org helm-nixos-options helm-mode-manager helm-make helm-descbinds helm-css-scss helm-comint helm-cider helm-ag google-translate golden-ratio gh-md geiser flycheck-package flycheck-elsa flx-ido fancy-battery eyebrowse expand-region evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-textobj-line evil-surround evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-lisp-state evil-lion evil-indent-plus evil-iedit-state evil-goggles evil-exchange evil-evilified-state evil-escape evil-easymotion evil-collection evil-cleverparens evil-args evil-anzu eshell-z eshell-prompt-extras esh-help emr emmet-mode elisp-slime-nav elisp-def editorconfig eat dumb-jump drag-stuff dotenv-mode dired-quick-sort diminish devdocs define-word column-enforce-mode clean-aindent-mode cider-eval-sexp-fu centered-cursor-mode auto-highlight-symbol auto-compile all-the-icons aggressive-indent ace-link ace-jump-helm-line))) +(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. + ) +)