diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2020-05-19 21:08:12 -0400 |
---|---|---|
committer | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2020-05-19 21:08:20 -0400 |
commit | fd61bf44f45a6832dd56bf6fbbd59a06f80dd2d9 (patch) | |
tree | 397c4a45b2473ee7647d56e00077e6ba56b7eff4 | |
parent | 0f6469231eeb774831f4ce7b34b994e892d63f28 (diff) |
Some stuff from firelink
-rw-r--r-- | Xresources-pincer | 2 | ||||
-rwxr-xr-x | bin/kj-setup.sh | 5 | ||||
-rw-r--r-- | gitconfig | 7 | ||||
-rw-r--r-- | nix-home-config/my-env.nix | 1 | ||||
-rw-r--r-- | spacemacs | 34 | ||||
-rw-r--r-- | xmonad/xmonad.hs | 5 | ||||
-rw-r--r-- | zshenv | 9 |
7 files changed, 59 insertions, 4 deletions
diff --git a/Xresources-pincer b/Xresources-pincer index e93903e..d90a24d 100644 --- a/Xresources-pincer +++ b/Xresources-pincer @@ -9,6 +9,8 @@ urxvt*scrollBar: false URxvt*termName: xterm-256color Xterm*termName: xterm-256color +Xcursor.size: 24 + Xft.lcdfilter: lcddefault Xft.dpi: 96 Xft.antialias: true diff --git a/bin/kj-setup.sh b/bin/kj-setup.sh index e335a5f..faa33f0 100755 --- a/bin/kj-setup.sh +++ b/bin/kj-setup.sh @@ -110,3 +110,8 @@ create_symlink ../../dotfiles/urxvt/ext/clipboard .urxvt/ext/clipboard if which emacs >/dev/null && [[ ! -d .emacs.d ]]; then git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d fi + +if which xfconf-query; then + echo "disable xfce ssh-agent" + xfconf-query -c xfce4-session -p /startup/ssh-agent/enabled -n -t bool -s false +fi @@ -1,6 +1,6 @@ [user] name = Kjetil Orbekk - email = kjetil.orbekk@gmail.com + email = kj@orbekk.com [color] diff = auto status = auto @@ -8,3 +8,8 @@ ui = true [push] default = simple +[sendemail] + smtpencryption = tls + smtpserver = mail.messagingengine.com + smtpuser = kj@orbekk.com + smtpserverport = 587 diff --git a/nix-home-config/my-env.nix b/nix-home-config/my-env.nix index 93a1a43..a146c88 100644 --- a/nix-home-config/my-env.nix +++ b/nix-home-config/my-env.nix @@ -31,5 +31,6 @@ bwm_ng nix-index rustup + gitFull ]; } @@ -208,6 +208,38 @@ It is called immediately after `dotspacemacs/init'. You are free to put any user code." ;; bind ctrl-w to backwards-kill-word when no region is selected (global-set-key (kbd "C-w") 'backward-kill-word-or-kill-region) + (setq tab-width 8) + + (defun c-lineup-arglist-tabs-only (ignored) + "Line up argument lists by tabs, not spaces" + (let* ((anchor (c-langelem-pos c-syntactic-element)) + (column (c-langelem-2nd-pos c-syntactic-element)) + (offset (- (1+ column) anchor)) + (steps (floor offset c-basic-offset))) + (* (max steps 1) + c-basic-offset))) + + (add-hook 'c-mode-common-hook + (lambda () + ;; Add kernel style + (c-add-style + "linux-tabs-only" + '("linux" (c-offsets-alist + (arglist-cont-nonempty + c-lineup-gcc-asm-reg + c-lineup-arglist-tabs-only)))))) + + (add-hook 'c-mode-hook + (lambda () + (let ((filename (buffer-file-name))) + ;; Enable kernel mode for the appropriate files + (when (and filename + (string-match (expand-file-name "~/projects/linux") + filename)) + (setq indent-tabs-mode t) + (setq tab-width 8) + (setq show-trailing-whitespace t) + (c-set-style "linux-tabs-only"))))) (spacemacs|use-package-add-hook org :pre-init @@ -337,7 +369,7 @@ layers configuration. You are free to put any user code." ;; If there is more than one, they won't work right. '(package-selected-packages (quote - (pos-tip git-gutter-fringe+ git-gutter-fringe fringe-helper git-gutter+ git-gutter transient goto-chg undo-tree diminish diff-hl csv-mode wgrep smex ivy-hydra lv counsel-projectile counsel swiper ivy ess-smart-equals ess-R-data-view ctable ess julia-mode nix-mode helm-nixos-options nixos-options winum uuidgen pug-mode org-projectile org-category-capture org-mime org-download mu4e-maildirs-extension mu4e-alert ht livid-mode skewer-mode simple-httpd link-hint intero flycheck hlint-refactor helm-hoogle git-link eyebrowse evil-visual-mark-mode evil-unimpaired evil-ediff eshell-z dumb-jump f company-ghci company-ghc company column-enforce-mode cargo idris-mode prop-menu ledger-mode toml-mode racer rust-mode smeargle orgit magit-gitflow helm-gitignore request gitignore-mode gitconfig-mode gitattributes-mode git-timemachine git-messenger evil-magit magit magit-popup git-commit with-editor xterm-color ws-butler window-numbering web-mode web-beautify volatile-highlights vi-tilde-fringe toc-org tern tagedit spacemacs-theme spaceline powerline smooth-scrolling slim-mode shm shell-pop scss-mode sass-mode restart-emacs rainbow-delimiters popwin persp-mode pcre2el paradox hydra spinner page-break-lines org-repo-todo org-present org-pomodoro alert log4e gntp org-plus-contrib org-bullets open-junk-file nyan-mode neotree multi-term move-text mmm-mode markdown-toc markdown-mode macrostep lorem-ipsum linum-relative leuven-theme less-css-mode json-mode json-snatcher json-reformat js2-refactor multiple-cursors s js2-mode js-doc jade-mode info+ indent-guide ido-vertical-mode hungry-delete htmlize hl-todo hindent highlight-parentheses highlight-numbers parent-mode highlight-indentation help-fns+ helm-themes helm-swoop helm-projectile helm-mode-manager helm-make projectile pkg-info epl helm-flyspell helm-flx helm-descbinds helm-css-scss helm-ag haskell-snippets yasnippet haml-mode google-translate golden-ratio gnuplot ghc haskell-mode gh-md flx-ido flx fill-column-indicator fancy-battery expand-region exec-path-from-shell evil-visualstar evil-tutor evil-surround evil-search-highlight-persist evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-lisp-state smartparens evil-indent-plus evil-iedit-state iedit evil-exchange evil-escape evil-args evil-anzu anzu eval-sexp-fu highlight eshell-prompt-extras esh-help emmet-mode elisp-slime-nav disaster define-word coffee-mode cmm-mode cmake-mode clean-aindent-mode clang-format buffer-move bracketed-paste auto-highlight-symbol auto-dictionary auto-compile packed dash aggressive-indent adaptive-wrap ace-window ace-link ace-jump-helm-line helm avy helm-core popup async quelpa package-build use-package which-key bind-key bind-map evil monokai-theme)))) + (sql-indent pos-tip git-gutter-fringe+ git-gutter-fringe fringe-helper git-gutter+ git-gutter transient goto-chg undo-tree diminish diff-hl csv-mode wgrep smex ivy-hydra lv counsel-projectile counsel swiper ivy ess-smart-equals ess-R-data-view ctable ess julia-mode nix-mode helm-nixos-options nixos-options winum uuidgen pug-mode org-projectile org-category-capture org-mime org-download mu4e-maildirs-extension mu4e-alert ht livid-mode skewer-mode simple-httpd link-hint intero flycheck hlint-refactor helm-hoogle git-link eyebrowse evil-visual-mark-mode evil-unimpaired evil-ediff eshell-z dumb-jump f company-ghci company-ghc company column-enforce-mode cargo idris-mode prop-menu ledger-mode toml-mode racer rust-mode smeargle orgit magit-gitflow helm-gitignore request gitignore-mode gitconfig-mode gitattributes-mode git-timemachine git-messenger evil-magit magit magit-popup git-commit with-editor xterm-color ws-butler window-numbering web-mode web-beautify volatile-highlights vi-tilde-fringe toc-org tern tagedit spacemacs-theme spaceline powerline smooth-scrolling slim-mode shm shell-pop scss-mode sass-mode restart-emacs rainbow-delimiters popwin persp-mode pcre2el paradox hydra spinner page-break-lines org-repo-todo org-present org-pomodoro alert log4e gntp org-plus-contrib org-bullets open-junk-file nyan-mode neotree multi-term move-text mmm-mode markdown-toc markdown-mode macrostep lorem-ipsum linum-relative leuven-theme less-css-mode json-mode json-snatcher json-reformat js2-refactor multiple-cursors s js2-mode js-doc jade-mode info+ indent-guide ido-vertical-mode hungry-delete htmlize hl-todo hindent highlight-parentheses highlight-numbers parent-mode highlight-indentation help-fns+ helm-themes helm-swoop helm-projectile helm-mode-manager helm-make projectile pkg-info epl helm-flyspell helm-flx helm-descbinds helm-css-scss helm-ag haskell-snippets yasnippet haml-mode google-translate golden-ratio gnuplot ghc haskell-mode gh-md flx-ido flx fill-column-indicator fancy-battery expand-region exec-path-from-shell evil-visualstar evil-tutor evil-surround evil-search-highlight-persist evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-lisp-state smartparens evil-indent-plus evil-iedit-state iedit evil-exchange evil-escape evil-args evil-anzu anzu eval-sexp-fu highlight eshell-prompt-extras esh-help emmet-mode elisp-slime-nav disaster define-word coffee-mode cmm-mode cmake-mode clean-aindent-mode clang-format buffer-move bracketed-paste auto-highlight-symbol auto-dictionary auto-compile packed dash aggressive-indent adaptive-wrap ace-window ace-link ace-jump-helm-line helm avy helm-core popup async quelpa package-build use-package which-key bind-key bind-map evil monokai-theme)))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. diff --git a/xmonad/xmonad.hs b/xmonad/xmonad.hs index 4df0d58..b8989c8 100644 --- a/xmonad/xmonad.hs +++ b/xmonad/xmonad.hs @@ -2,6 +2,7 @@ import System.Posix.Unistd (nodeName, getSystemID) import System.Posix.Env (setEnv) import XMonad import XMonad.Actions.CycleWS +import XMonad.Config.Kde import XMonad.Config.Desktop import XMonad.Hooks.DynamicLog import XMonad.Hooks.ManageDocks @@ -33,7 +34,7 @@ main = do layoutScreensHost = "unused" -- orange myConfig host = - (docks . ewmh) $ desktopConfig + (docks . ewmh) $ kdeConfig { layoutHook = smartBorders $ myLayout , keys = myKeys , modMask = mod4Mask @@ -42,7 +43,7 @@ myConfig host = , focusedBorderColor = "#ff0000" , normalBorderColor = "#777778" , workspaces = pure <$> "\"<>PYFAOEUI" - , manageHook = insertPosition Below Newer <+> (isDialog --> doF W.shiftMaster <+> doF W.swapDown) + , manageHook = manageHook kdeConfig <+> insertPosition Below Newer <+> (isDialog --> doF W.shiftMaster <+> doF W.swapDown) } where myLayout = onHost layoutScreensHost (verticalTiled ||| horizontalTiled ||| Full) $ layoutHook desktopConfig @@ -1,3 +1,12 @@ +# Start configuration added by Zim install {{{ +# +# User configuration sourced by all invocations of the shell +# + +# Define Zim location +: ${ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim} +# }}} End configuration added by Zim install + export ZSHENV_LOADED=true export EDITOR=nvim export PATH=$PATH:$HOME/bin |