Skip to content

Commit c1308af

Browse files
authored
[RFC] Add new dependecies (#2)
* add new dependecies * update zsh * update spacemacs layers config
1 parent 7140a59 commit c1308af

File tree

3 files changed

+63
-66
lines changed

3 files changed

+63
-66
lines changed

.spacemacs

+54-57
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This function should only modify configuration layer settings."
2727
dotspacemacs-ask-for-lazy-installation t
2828

2929
;; List of additional paths where to look for configuration layers.
30-
;; Paths must have a trailing slash (i.e. `~/.mycontribs/')
30+
;; Paths must have a trailing slash (i.e. "~/.mycontribs/")
3131
dotspacemacs-configuration-layer-path '()
3232

3333
;; List of configuration layers to load.
@@ -55,14 +55,14 @@ This function should only modify configuration layer settings."
5555
spacemacs-language
5656
spacemacs-misc
5757
spacemacs-modeline
58-
spacemacs-navigation
58+
;; spacemacs-navigation
5959
spacemacs-org
6060
;; spacemacs-purpose
6161
spacemacs-visual
6262
spell-checking
6363
syntax-checking
64-
languagetool
65-
web-beautify
64+
;; languagetool
65+
;; web-beautify
6666
;; -- version control --
6767
(shell :variables
6868
shell-default-height 30
@@ -73,8 +73,8 @@ This function should only modify configuration layer settings."
7373
git-enable-magit-delta-plugin t
7474
git-enable-magit-gitflow-plugin t)
7575
;; gui
76-
themes-megapack
77-
neotree
76+
;; themes-megapack
77+
;; neotree
7878
;; multiple-cursors
7979
(treemacs :variables
8080
treemacs-use-follow-mode 'tag
@@ -83,18 +83,18 @@ This function should only modify configuration layer settings."
8383
;; tabs
8484

8585
;; -- files --
86-
html
86+
;; html
8787
(markdown :variables
8888
markdown-live-preview-engine 'vmd
8989
markdown-mmm-auto-modes '("c" "c++" "python" "scala" ("elisp" "emacs-lisp")))
9090
(yaml :variables yaml-enable-lsp t)
9191
(json :variables
92-
json-fmt-tool 'web-beautify
92+
json-fmt-tool 'prettier
9393
json-backend 'lsp
9494
json-fmt-on-save t)
9595
;; org
9696
;; -- languages --
97-
rust
97+
;; rust
9898
bibtex
9999
latex
100100
(latex :variables latex-backend 'lsp)
@@ -107,7 +107,7 @@ This function should only modify configuration layer settings."
107107
sql-auto-indent nil
108108
sql-backend 'lsp
109109
sql-lsp-sqls-workspace-config-path 'workspace
110-
sql-capitalize-keywords t
110+
sql-capitalize-keywords nil
111111
sql-capitalize-keywords-blacklist '("name" "varchar"))
112112
(shell-scripts :variables shell-scripts-backend 'lsp)
113113
;; -- virtualization --
@@ -127,7 +127,7 @@ This function should only modify configuration layer settings."
127127
;; `dotspacemacs/user-config'. To use a local version of a package, use the
128128
;; `:location' property: '(your-package :location "~/path/to/your-package/")
129129
;; Also include the dependencies as they will not be resolved automatically.
130-
dotspacemacs-additional-packages '(all-the-icons all-the-icons-dired)
130+
dotspacemacs-additional-packages '()
131131

132132
;; A list of packages that cannot be updated.
133133
dotspacemacs-frozen-packages '()
@@ -175,14 +175,6 @@ It should only modify the values of Spacemacs settings."
175175
;; (default (format "spacemacs-%s.pdmp" emacs-version))
176176
dotspacemacs-emacs-dumper-dump-file (format "spacemacs-%s.pdmp" emacs-version)
177177

178-
;; If non-nil ELPA repositories are contacted via HTTPS whenever it's
179-
;; possible. Set it to nil if you have no way to use HTTPS in your
180-
;; environment, otherwise it is strongly recommended to let it set to t.
181-
;; This variable has no effect if Emacs is launched with the parameter
182-
;; `--insecure' which forces the value of this variable to nil.
183-
;; (default t)
184-
dotspacemacs-elpa-https t
185-
186178
;; Maximum allowed time in seconds to contact an ELPA repository.
187179
;; (default 5)
188180
dotspacemacs-elpa-timeout 5
@@ -299,7 +291,10 @@ It should only modify the values of Spacemacs settings."
299291

300292
;; List of themes, the first of the list is loaded when spacemacs starts.
301293
;; Press `SPC T n' to cycle to the next theme in the list (works great
302-
;; with 2 themes variants, one dark and one light)
294+
;; with 2 themes variants, one dark and one light). A theme from external
295+
;; package can be defined with `:package', or a theme can be defined with
296+
;; `:location' to download the theme package, refer the themes section in
297+
;; DOCUMENTATION.org for the full theme specifications.
303298
dotspacemacs-themes '(spacemacs-dark
304299
spacemacs-light)
305300

@@ -316,7 +311,9 @@ It should only modify the values of Spacemacs settings."
316311
;; (default t)
317312
dotspacemacs-colorize-cursor-according-to-state t
318313

319-
;; Default font or prioritized list of fonts. The `:size' can be specified as
314+
;; Default font or prioritized list of fonts. This setting has no effect when
315+
;; running Emacs in terminal. The font set here will be used for default and
316+
;; fixed-pitch faces. The `:size' can be specified as
320317
;; a non-negative integer (pixel size), or a floating-point (point size).
321318
;; Point size is recommended, because it's device independent. (default 10.0)
322319
dotspacemacs-default-font '("Source Code Pro"
@@ -397,6 +394,10 @@ It should only modify the values of Spacemacs settings."
397394
;; Which-key frame position. Possible values are `right', `bottom' and
398395
;; `right-then-bottom'. right-then-bottom tries to display the frame to the
399396
;; right; if there is insufficient space it displays it at the bottom.
397+
;; It is also possible to use a posframe with the following cons cell
398+
;; `(posframe . position)' where position can be one of `center',
399+
;; `top-center', `bottom-center', `top-left-corner', `top-right-corner',
400+
;; `top-right-corner', `bottom-left-corner' or `bottom-right-corner'
400401
;; (default 'bottom)
401402
dotspacemacs-which-key-position 'bottom
402403

@@ -407,6 +408,22 @@ It should only modify the values of Spacemacs settings."
407408
;; displayed in the current window. (default nil)
408409
dotspacemacs-switch-to-buffer-prefers-purpose nil
409410

411+
;; Whether side windows (such as those created by treemacs or neotree)
412+
;; are kept or minimized by `spacemacs/toggle-maximize-window' (SPC w m).
413+
;; (default t)
414+
dotspacemacs-maximize-window-keep-side-windows t
415+
416+
;; If nil, no load-hints enabled. If t, enable the `load-hints' which will
417+
;; put the most likely path on the top of `load-path' to reduce walking
418+
;; through the whole `load-path'. It's an experimental feature to speedup
419+
;; Spacemacs on Windows. Refer the FAQ.org "load-hints" session for details.
420+
dotspacemacs-enable-load-hints nil
421+
422+
;; If t, enable the `package-quickstart' feature to avoid full package
423+
;; loading, otherwise no `package-quickstart' attemption (default nil).
424+
;; Refer the FAQ.org "package-quickstart" section for details.
425+
dotspacemacs-enable-package-quickstart nil
426+
410427
;; If non-nil a progress bar is displayed when spacemacs is loading. This
411428
;; may increase the boot time on some systems and emacs builds, set it to
412429
;; nil to boost the loading time. (default t)
@@ -483,13 +500,8 @@ It should only modify the values of Spacemacs settings."
483500
;; :size-limit-kb 1000)
484501
;; When used in a plist, `visual' takes precedence over `relative'.
485502
;; (default nil)
486-
dotspacemacs-line-numbers '(:visual nil
487-
:disabled-for-modes
488-
dired-mode
489-
doc-view-mode
490-
pdf-view-mode
491-
:size-limit-kb 1000)
492-
503+
dotspacemacs-line-numbers t
504+
493505
;; Code folding method. Possible values are `evil', `origami' and `vimish'.
494506
;; (default 'evil)
495507
dotspacemacs-folding-method 'evil
@@ -533,6 +545,13 @@ It should only modify the values of Spacemacs settings."
533545
;; (default '("rg" "ag" "pt" "ack" "grep"))
534546
dotspacemacs-search-tools '("rg" "ag" "pt" "ack" "grep")
535547

548+
;; The backend used for undo/redo functionality. Possible values are
549+
;; `undo-fu', `undo-redo' and `undo-tree' see also `evil-undo-system'.
550+
;; Note that saved undo history does not get transferred when changing
551+
;; your undo system. The default is currently `undo-fu' as `undo-tree'
552+
;; is not maintained anymore and `undo-redo' is very basic."
553+
dotspacemacs-undo-system 'undo-fu
554+
536555
;; Format specification for setting the frame title.
537556
;; %a - the `abbreviated-file-name', or `buffer-name'
538557
;; %t - `projectile-project-name'
@@ -568,6 +587,9 @@ It should only modify the values of Spacemacs settings."
568587
;; to aggressively delete empty line and long sequences of whitespace,
569588
;; `trailing' to delete only the whitespace at end of lines, `changed' to
570589
;; delete only whitespace for changed lines or `nil' to disable cleanup.
590+
;; The variable `global-spacemacs-whitespace-cleanup-modes' controls
591+
;; which major modes have whitespace cleanup enabled or disabled
592+
;; by default.
571593
;; (default nil)
572594
dotspacemacs-whitespace-cleanup nil
573595

@@ -611,23 +633,23 @@ default it calls `spacemacs/load-spacemacs-env' which loads the environment
611633
variables declared in `~/.spacemacs.env' or `~/.spacemacs.d/.spacemacs.env'.
612634
See the header of this file for more information."
613635
(spacemacs/load-spacemacs-env)
614-
)
636+
)
615637

616638
(defun dotspacemacs/user-init ()
617639
"Initialization for user code:
618640
This function is called immediately after `dotspacemacs/init', before layer
619641
configuration.
620642
It is mostly for variables that should be set before packages are loaded.
621643
If you are unsure, try setting them in `dotspacemacs/user-config' first."
622-
)
644+
)
623645

624646

625647
(defun dotspacemacs/user-load ()
626648
"Library to load while dumping.
627649
This function is called only while dumping Spacemacs configuration. You can
628650
`require' or `load' the libraries of your choice that will be included in the
629651
dump."
630-
)
652+
)
631653

632654

633655
(defun dotspacemacs/user-config ()
@@ -636,33 +658,8 @@ This function is called at the very end of Spacemacs startup, after layer
636658
configuration.
637659
Put your configuration code here, except for variables that should be set
638660
before packages are loaded."
639-
)
661+
)
640662

641663

642664
;; Do not write anything past this comment. This is where Emacs will
643665
;; auto-generate custom variable definitions.
644-
(defun dotspacemacs/emacs-custom-settings ()
645-
"Emacs custom settings.
646-
This is an auto-generated function, do not modify its content directly, use
647-
Emacs customize menu instead.
648-
This function is called at the very end of Spacemacs initialization."
649-
(custom-set-variables
650-
;; custom-set-variables was added by Custom.
651-
;; If you edit it by hand, you could mess it up, so be careful.
652-
;; Your init file should contain only one such instance.
653-
;; If there is more than one, they won't work right.
654-
'(TeX-view-program-selection
655-
'(((output-dvi has-no-display-manager)
656-
"dvi2tty")
657-
((output-dvi style-pstricks)
658-
"dvips and gv")
659-
(output-dvi "xdvi")
660-
(output-pdf "Okular")
661-
(output-html "xdg-open"))))
662-
(custom-set-faces
663-
;; custom-set-faces was added by Custom.
664-
;; If you edit it by hand, you could mess it up, so be careful.
665-
;; Your init file should contain only one such instance.
666-
;; If there is more than one, they won't work right.
667-
'(default ((t (:background nil)))))
668-
)

.zshrc

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ ZSH_THEME="powerlevel10k/powerlevel10k"
7979
# Example format: plugins=(rails git textmate ruby lighthouse)
8080
# Add wisely, as too many plugins slow down shell startup.
8181
plugins=(
82-
ubuntu # os: archlinux, ubuntu
82+
archlinux # os: archlinux, ubuntu
8383
cp
8484
emacs
8585
aws
@@ -105,7 +105,7 @@ plugins=(
105105
gnu-utils
106106
poetry
107107
ruby
108-
kubectl
108+
# kubectl
109109
helm
110110
# tmux
111111
# vagrant

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111
### Basic utilities
1212
```sh
1313
# build essentials
14-
sudo pacman -S git vim make automake cmake
14+
sudo pacman -S git vim make automake cmake fakeroot patch
1515

1616
# package manager
17-
sudo pacman -S yay snapd npm stack
18-
sudo systemctl enable snapd
17+
sudo pacman -S yay snapd npm
18+
sudo systemctl enable --now snapd.socket
19+
sudo ln -s /var/lib/snapd/snap /snap
1920
sudo systemctl start snapd
2021
```
2122

@@ -53,17 +54,16 @@ cp .zshrc ~/.zshrc
5354

5455
### Apps
5556
- [Slack](https://snapcraft.io/slack)
57+
- [Code](https://snapcraft.io/code)
5658

5759
```sh
5860
sudo pacman -S alacritty ruby go
5961
```
6062
- [Spacemacs](docs/spacemacs.md)
6163
- Python
6264
```sh
63-
# pip
64-
sudo pacman -S python-pip pyenv
65-
# pipx
66-
pip install pipx
65+
# pip and pipx
66+
sudo pacman -S pyenv python-pip python-pipx
6767
# pipx packages
6868
pipx install poetry pre-commit
6969
```

0 commit comments

Comments
 (0)