home: update emacs and some other configs
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
129
flake.lock
generated
129
flake.lock
generated
@@ -22,11 +22,11 @@
|
||||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1674359560,
|
||||
"narHash": "sha256-gobqd75ujP/zFH6kSZNB3bA3YS4NMXWpZgMo1RAFEdk=",
|
||||
"lastModified": 1677523399,
|
||||
"narHash": "sha256-NdHq1p6ENj+cI2oB8sEttnJBzFgj1f9p4Xr3AcUOFWo=",
|
||||
"owner": "nix-community",
|
||||
"repo": "emacs-overlay",
|
||||
"rev": "184ae9c371a6251564e0b07391f7e9aaf310f002",
|
||||
"rev": "e489ac3f5f94c71b759c5b6bbde15be29d873b7c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -72,11 +72,11 @@
|
||||
"nixpkgs-lib": "nixpkgs-lib"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1673362319,
|
||||
"narHash": "sha256-Pjp45Vnj7S/b3BRpZEVfdu8sqqA6nvVjvYu59okhOyI=",
|
||||
"lastModified": 1675933616,
|
||||
"narHash": "sha256-/rczJkJHtx16IFxMmAWu5nNYcSXNg1YYXTHoGjLrLUA=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "82c16f1682cf50c01cb0280b38a1eed202b3fe9f",
|
||||
"rev": "47478a4a003e745402acf63be7f9a092d51b83d7",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -138,11 +138,11 @@
|
||||
"utils": "utils"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1674250603,
|
||||
"narHash": "sha256-SBolFspxBHpW3hCCDNAFXUiO2mucmkVmf17UmSIK3Cs=",
|
||||
"lastModified": 1677509389,
|
||||
"narHash": "sha256-ry4dkSjIO0WuEbIDpTFV0W2iq2S26kWCv7EX2vKOWEI=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "275ab728912006eecb549338a50f24f294a7cfb7",
|
||||
"rev": "ab7c8f4a8427bfcaf01a46bab974298cc27bc1f5",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -161,11 +161,11 @@
|
||||
"xdph": "xdph"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1674403405,
|
||||
"narHash": "sha256-FPOER3tINOEI+oWQGeiWLkpCudVJC3V8wk5cvP9857s=",
|
||||
"lastModified": 1677527262,
|
||||
"narHash": "sha256-CjUQtuLsz3VkSbV1eM1UwcWzruNgvK8ekZrIUevH72o=",
|
||||
"owner": "hyprwm",
|
||||
"repo": "Hyprland",
|
||||
"rev": "cb98242ea7faff04dad3ae166aff7126184f17c5",
|
||||
"rev": "18229043fa85bdf96a9d829c1e61d0f524a1966a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -181,11 +181,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1672071700,
|
||||
"narHash": "sha256-Z0pbBVtijv4xbL42rPzMoYFSOqALFRYDMN9iOumSEso=",
|
||||
"lastModified": 1677504916,
|
||||
"narHash": "sha256-lcmVUaGt+h2QVBSqW3sBPkaEPUHpDzivr7YoKbeI+7I=",
|
||||
"owner": "hyprwm",
|
||||
"repo": "contrib",
|
||||
"rev": "37c8121f98d76f57caa00dd7106877876e0d7483",
|
||||
"rev": "d5c0c94d61ac600687382b2e0959864d6fbc84b8",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -247,11 +247,11 @@
|
||||
"utils": "utils_3"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1673620854,
|
||||
"narHash": "sha256-kQruy/z1+82iq+7ySGdw6GScSXvILn91t/o+0tbRx9w=",
|
||||
"lastModified": 1677433142,
|
||||
"narHash": "sha256-351eG11Cl4CjKxRoiVvjWAD9nQWLlCxLlltcJWvXGa0=",
|
||||
"owner": "nbfc-linux",
|
||||
"repo": "nbfc-linux",
|
||||
"rev": "c267469684d620e6055ec3382f247979704c90e9",
|
||||
"rev": "7954b30531593849fc3b11c760930baf891f5ad1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -270,11 +270,11 @@
|
||||
},
|
||||
"locked": {
|
||||
"dir": "contrib",
|
||||
"lastModified": 1674285754,
|
||||
"narHash": "sha256-7EKYM0Cdd0AOSQ4+lyLgLSTLOS4yRCgWqJfgMrOss/I=",
|
||||
"lastModified": 1677463842,
|
||||
"narHash": "sha256-MgUEDPza573qKV59nRqrykLblPKBZu+DAIUqg9Pl5wU=",
|
||||
"owner": "neovim",
|
||||
"repo": "neovim",
|
||||
"rev": "7ef5e363d360f86c5d8d403e90ed256f4de798ec",
|
||||
"rev": "2c9fbe34b20266ef5ab54f6ed14fb38eef60430d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -286,16 +286,14 @@
|
||||
},
|
||||
"nix-gaming": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
"nixpkgs": "nixpkgs_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1672665710,
|
||||
"narHash": "sha256-kK9DB+J7zDSs5H0X0AxEn85VKROLKYnUbPijtZEPrYY=",
|
||||
"lastModified": 1677507556,
|
||||
"narHash": "sha256-ILX2jRfb8hNW/xNf2ZVvUX5B5yfAZFr1C5ky7hD/b4I=",
|
||||
"owner": "fufexan",
|
||||
"repo": "nix-gaming",
|
||||
"rev": "66c8cbbde08af5a7e87cd3aa4fb4725f20966db2",
|
||||
"rev": "d08381e6d37b008dad4a94e7b863ea0aef1eb223",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -338,11 +336,11 @@
|
||||
"nixpkgs-lib": {
|
||||
"locked": {
|
||||
"dir": "lib",
|
||||
"lastModified": 1672350804,
|
||||
"narHash": "sha256-jo6zkiCabUBn3ObuKXHGqqORUMH27gYDIFFfLq5P4wg=",
|
||||
"lastModified": 1675183161,
|
||||
"narHash": "sha256-Zq8sNgAxDckpn7tJo7V1afRSk2eoVbu3OjI1QklGLNg=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "677ed08a50931e38382dbef01cba08a8f7eac8f6",
|
||||
"rev": "e1e1b192c1a5aab2960bf0a0bd53a2e8124fa18e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -355,11 +353,27 @@
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1674236650,
|
||||
"narHash": "sha256-B4GKL1YdJnII6DQNNJ4wDW1ySJVx2suB1h/v4Ql8J0Q=",
|
||||
"lastModified": 1675614288,
|
||||
"narHash": "sha256-i3Rc/ENnz62BcrSloeVmAyPicEh4WsrEEYR+INs9TYw=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "d25de6654a34d99dceb02e71e6db516b3b545be6",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_3": {
|
||||
"locked": {
|
||||
"lastModified": 1677413016,
|
||||
"narHash": "sha256-dwvL0VK5iyxXPQzJOPzYmuVinh/R9hwRu7eYq6Bf6ag=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "cfb43ad7b941d9c3606fb35d91228da7ebddbfc5",
|
||||
"rev": "84e33aea0f7a8375c92458c5b6cad75fa1dd561b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -369,7 +383,7 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_3": {
|
||||
"nixpkgs_4": {
|
||||
"locked": {
|
||||
"lastModified": 1671983799,
|
||||
"narHash": "sha256-Z2Ro6hFPZHkBqkVXY5/aBUzxi5xizQGvuHQ9+T5B/ks=",
|
||||
@@ -389,14 +403,14 @@
|
||||
"inputs": {
|
||||
"flake-compat": "flake-compat_2",
|
||||
"neovim-flake": "neovim-flake",
|
||||
"nixpkgs": "nixpkgs_3"
|
||||
"nixpkgs": "nixpkgs_4"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1674288814,
|
||||
"narHash": "sha256-Mso2c8XcbMwL+r8BIuEU8WwVJiO6A0HVZHbRFQEd9og=",
|
||||
"lastModified": 1677485761,
|
||||
"narHash": "sha256-C04OWgNrCxPGUiT7Px/vZd42vfwRY6/EjHwHNUSHv7g=",
|
||||
"owner": "nix-community",
|
||||
"repo": "neovim-nightly-overlay",
|
||||
"rev": "4e7c0bc2a80f67e300906d090546f91b4c4c44db",
|
||||
"rev": "aad4d8be05012055861b097b8019311fe62635bf",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -415,11 +429,10 @@
|
||||
"mailserver": "mailserver",
|
||||
"nbfc": "nbfc",
|
||||
"nix-gaming": "nix-gaming",
|
||||
"nixpkgs": "nixpkgs_2",
|
||||
"nixpkgs": "nixpkgs_3",
|
||||
"nvim-overlay": "nvim-overlay",
|
||||
"rust-overlay": "rust-overlay",
|
||||
"stable": "stable",
|
||||
"webcord": "webcord"
|
||||
"stable": "stable"
|
||||
}
|
||||
},
|
||||
"rust-overlay": {
|
||||
@@ -430,11 +443,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1674354556,
|
||||
"narHash": "sha256-vUuhf6VTW2hIdBGgivUZiAVkzByHji8TsTQGwS8Wh+s=",
|
||||
"lastModified": 1677465082,
|
||||
"narHash": "sha256-b82PmPWkt0pAsxmc477Yowq1Ez1VyjA5wnxE+yoIOWg=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "a16fb5f08d16e33727c8303dabefd81f06cb64c7",
|
||||
"rev": "2924bfce2fadc1ded4a2b8cfce7f2fd4ef41c36f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -445,11 +458,11 @@
|
||||
},
|
||||
"stable": {
|
||||
"locked": {
|
||||
"lastModified": 1674638707,
|
||||
"narHash": "sha256-yGYxlb5jPAiuvzCZ4MQAfPqp8DxfgkFEoBzYPhQxX4Y=",
|
||||
"lastModified": 1677480869,
|
||||
"narHash": "sha256-JqSHh8zE2ztj185hYYYx7+ML9DVNjDVMinTDbYP/iq0=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "d278b8c3f6b9fd9604fd0b7ddb3bf29f1cbaea39",
|
||||
"rev": "02aa9854e20363b33932b5a9d4e87bc3c37ce820",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -504,31 +517,15 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"webcord": {
|
||||
"locked": {
|
||||
"lastModified": 1672958964,
|
||||
"narHash": "sha256-3SB6mTMTiek1B1zie7oD3DWJWVqKDaB5znQ+Nz6jz/Y=",
|
||||
"owner": "huantianad",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "1d1ed8fbb244fe3d242ebd3d2ad4e647235719eb",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "huantianad",
|
||||
"ref": "webcord",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"wlroots": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"host": "gitlab.freedesktop.org",
|
||||
"lastModified": 1672824257,
|
||||
"narHash": "sha256-SbYoZj57VlopTzI+OSW9jlgYxN1gI1KLg/s/HV+87eE=",
|
||||
"lastModified": 1675374853,
|
||||
"narHash": "sha256-BSrjNcddYWhFUMtjGwxiEXw67MYRaIHGvLn19Mvm1NE=",
|
||||
"owner": "wlroots",
|
||||
"repo": "wlroots",
|
||||
"rev": "5f264a7d6c8af27d41ff440c05262b022c055593",
|
||||
"rev": "677a3f2f8847ed2de49dd60868f9d9487a546f58",
|
||||
"type": "gitlab"
|
||||
},
|
||||
"original": {
|
||||
|
@@ -17,10 +17,7 @@
|
||||
url = github:oxalica/rust-overlay;
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nix-gaming = {
|
||||
url = github:fufexan/nix-gaming;
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nix-gaming.url = github:fufexan/nix-gaming;
|
||||
nbfc = {
|
||||
url = github:nbfc-linux/nbfc-linux;
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
@@ -38,7 +35,6 @@
|
||||
url = github:hyprwm/contrib;
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
webcord.url = github:huantianad/nixpkgs/webcord;
|
||||
};
|
||||
|
||||
outputs = inputs@{ self, ... }:
|
||||
|
@@ -17,10 +17,11 @@
|
||||
(tool-bar-mode 0)
|
||||
(menu-bar-mode 0)
|
||||
(fringe-mode 0)
|
||||
;; (cua-mode 1)
|
||||
(global-display-line-numbers-mode 1)
|
||||
(xterm-mouse-mode 1)
|
||||
(setq ring-bell-function 'ignore)
|
||||
(setq ring-bell-function 'ignore
|
||||
gc-cons-threshold most-positive-fixnum
|
||||
initial-major-mode 'fundamental-mode)
|
||||
#+end_src
|
||||
|
||||
** Setting some variables
|
||||
@@ -49,6 +50,11 @@
|
||||
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
|
||||
(package-initialize)
|
||||
(require 'use-package)
|
||||
(use-package benchmark-init
|
||||
:ensure t
|
||||
:config
|
||||
;; To disable collection of benchmark data after init is done.
|
||||
(add-hook 'after-init-hook 'benchmark-init/deactivate))
|
||||
#+end_src
|
||||
|
||||
** Visual packages
|
||||
@@ -143,30 +149,27 @@ To undo and redo easily like vi
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(use-package treemacs-evil)
|
||||
(use-package treemacs-magit)
|
||||
(use-package treemacs-projectile)
|
||||
(use-package treemacs-all-the-icons)
|
||||
(use-package treemacs-evil :defer t)
|
||||
(use-package treemacs-magit :defer t)
|
||||
(use-package treemacs-projectile :defer t)
|
||||
(use-package treemacs-all-the-icons :defer t)
|
||||
#+end_src
|
||||
|
||||
** LSP
|
||||
*** Configure lsp-mode
|
||||
#+begin_src emacs-lisp
|
||||
(use-package lsp-mode
|
||||
:defer 0
|
||||
:commands lsp
|
||||
:custom
|
||||
(lsp-rust-analyzer-server-display-inlay-hints t)
|
||||
(lsp-rust-analyzer-display-chaining-hints t)
|
||||
(lsp-rust-analyzer-display-closure-return-type-hints t))
|
||||
:commands lsp)
|
||||
#+end_src
|
||||
|
||||
*** Configure lsp-ui
|
||||
#+begin_src emacs-lisp
|
||||
(use-package lsp-ui
|
||||
:defer 0
|
||||
:init
|
||||
(setq lsp-ui-doc-show-with-cursor t)
|
||||
(setq lsp-ui-doc-delay 1.0
|
||||
lsp-ui-doc-show-with-mouse t
|
||||
pgtk-wait-for-event-timeout nil
|
||||
lsp-ui-doc-show-with-cursor t)
|
||||
:config
|
||||
(lsp-ui-peek-enable 1)
|
||||
(lsp-ui-doc-enable 1))
|
||||
@@ -175,7 +178,6 @@ To undo and redo easily like vi
|
||||
*** Language specific LSP packages
|
||||
#+begin_src emacs-lisp
|
||||
(use-package lsp-haskell)
|
||||
(use-package lsp-grammarly)
|
||||
#+end_src
|
||||
|
||||
*** Configure flycheck
|
||||
@@ -193,11 +195,11 @@ To undo and redo easily like vi
|
||||
For autocomplete
|
||||
#+begin_src emacs-lisp
|
||||
(use-package company
|
||||
:defer 0
|
||||
:after lsp-mode
|
||||
:config
|
||||
(add-to-list 'company-backends 'company-dabbrev)
|
||||
(setq company-backends (cons 'company-files (remove 'company-files company-backends)))
|
||||
(add-to-list 'company-backends 'company-emoji)
|
||||
(company-mode 1))
|
||||
#+end_src
|
||||
|
||||
@@ -207,11 +209,17 @@ For autocomplete
|
||||
:hook (company-mode . company-quickhelp-mode))
|
||||
#+end_src
|
||||
|
||||
*** Extra company packages
|
||||
#+begin_src emacs-lisp
|
||||
(use-package company-emoji)
|
||||
#+end_src
|
||||
|
||||
** Treesitter
|
||||
#+begin_src emacs-lisp
|
||||
(use-package tree-sitter-langs)
|
||||
(use-package tree-sitter-langs :defer t)
|
||||
(use-package tree-sitter
|
||||
:after tree-sitter-langs
|
||||
:defer t
|
||||
:config
|
||||
(global-tree-sitter-mode)
|
||||
:init
|
||||
@@ -222,38 +230,30 @@ For autocomplete
|
||||
** Direnv
|
||||
#+begin_src emacs-lisp
|
||||
(use-package direnv
|
||||
:defer t
|
||||
:config
|
||||
(direnv-mode))
|
||||
#+end_src
|
||||
|
||||
** Lang support
|
||||
#+begin_src emacs-lisp
|
||||
(use-package inform7)
|
||||
|
||||
(use-package haskell-mode)
|
||||
|
||||
(use-package lsp-latex)
|
||||
|
||||
(use-package rustic)
|
||||
|
||||
(use-package yuck-mode)
|
||||
|
||||
(use-package wgsl-mode)
|
||||
|
||||
(use-package nix-mode
|
||||
:mode "\\.nix\\'")
|
||||
|
||||
(use-package hcl-mode
|
||||
:mode
|
||||
"\\.hcl\\'"
|
||||
"\\.nomad\\'")
|
||||
|
||||
(use-package go-mode)
|
||||
#+end_src
|
||||
|
||||
** Magit
|
||||
#+begin_src emacs-lisp
|
||||
(use-package magit)
|
||||
(use-package magit :defer t)
|
||||
#+end_src
|
||||
|
||||
* VTerm
|
||||
@@ -266,6 +266,7 @@ For autocomplete
|
||||
(setq vterm-timer-delay 0.005))
|
||||
|
||||
(use-package vterm-toggle
|
||||
:after vterm
|
||||
:config
|
||||
(setq vterm-toggle-fullscreen-p nil)
|
||||
(add-to-list 'display-buffer-alist
|
||||
@@ -283,28 +284,32 @@ For autocomplete
|
||||
** Centaur Tabs
|
||||
#+begin_src emacs-lisp
|
||||
(use-package centaur-tabs
|
||||
:demand
|
||||
:config
|
||||
(setq centaur-tabs-style "rounded"
|
||||
centaur-tabs-height 18
|
||||
centaur-tabs-set-modified-marker t
|
||||
centaur-tabs-set-icons t)
|
||||
(centaur-tabs-group-by-projectile-project)
|
||||
(centaur-tabs-headline-match)
|
||||
(centaur-tabs-mode nil)
|
||||
(set-face-attribute 'tab-line nil :inherit 'centaur-tabs-unselected))
|
||||
(set-face-attribute 'tab-line nil :inherit 'centaur-tabs-unselected)
|
||||
(centaur-tabs-headline-match))
|
||||
#+end_src
|
||||
|
||||
** Misc packages
|
||||
#+begin_src emacs-lisp
|
||||
(use-package elcord
|
||||
:defer 0)
|
||||
(use-package all-the-icons
|
||||
:if (display-graphic-p))
|
||||
|
||||
(use-package elcord :defer t)
|
||||
|
||||
(use-package projectile
|
||||
:defer t
|
||||
:config
|
||||
(define-key projectile-mode-map (kbd "C-x p") 'projectile-command-map)
|
||||
(projectile-mode +1))
|
||||
|
||||
(use-package rainbow-mode :defer t)
|
||||
|
||||
(use-package rainbow-delimiters
|
||||
:hook (prog-mode . rainbow-delimiters-mode))
|
||||
|
||||
@@ -316,6 +321,7 @@ For autocomplete
|
||||
#+begin_src emacs-lisp
|
||||
(use-package org
|
||||
:after evil
|
||||
:defer t
|
||||
:config
|
||||
(setq evil-want-C-i-jump nil
|
||||
org-adapt-indentation t
|
||||
@@ -330,13 +336,14 @@ For autocomplete
|
||||
** Add org-bullets
|
||||
#+begin_src emacs-lisp
|
||||
(use-package org-bullets
|
||||
:defer t
|
||||
:config
|
||||
(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))))
|
||||
#+end_src
|
||||
|
||||
** Babel and exports
|
||||
#+begin_src emacs-lisp
|
||||
(use-package htmlize)
|
||||
(use-package htmlize :defer t)
|
||||
(add-to-list 'org-latex-packages-alist '("" "minted"))
|
||||
(setq org-latex-listings 'minted)
|
||||
|
||||
@@ -367,78 +374,13 @@ For autocomplete
|
||||
#+end_src
|
||||
|
||||
* Random eye candy stuff
|
||||
** Ligature
|
||||
#+begin_src emacs-lisp
|
||||
(use-package ligature
|
||||
:config
|
||||
(ligature-set-ligatures 't '("www"))
|
||||
(ligature-set-ligatures 'prog-mode '("www" "**" "***" "**/" "*>" "*/" "\\\\" "\\\\\\" "{-" "::"
|
||||
":::" ":=" "!!" "!=" "!==" "-}" "----" "-->" "->" "->>"
|
||||
"-<" "-<<" "-~" "#{" "#[" "##" "###" "####" "#(" "#?" "#_"
|
||||
"#_(" ".-" ".=" ".." "..<" "..." "?=" "??" ";;" "/*" "/**"
|
||||
"/=" "/==" "/>" "//" "///" "&&" "||" "||=" "|=" "|>" "^=" "$>"
|
||||
"++" "+++" "+>" "=:=" "==" "===" "==>" "=>" "=>>" "<="
|
||||
"=<<" "=/=" ">-" ">=" ">=>" ">>" ">>-" ">>=" ">>>" "<*"
|
||||
"<*>" "<|" "<|>" "<$" "<$>" "<!--" "<-" "<--" "<->" "<+"
|
||||
"<+>" "<=" "<==" "<=>" "<=<" "<>" "<<" "<<-" "<<=" "<<<"
|
||||
"<~" "<~~" "</" "</>" "~@" "~-" "~>" "~~" "~~>" "%%"))
|
||||
(global-ligature-mode t))
|
||||
#+end_src
|
||||
|
||||
* Custom mode line
|
||||
switched to doom modeline after using my own modeline for a while
|
||||
#+begin_src emacs-lisp
|
||||
(defface mode-line-buf-name
|
||||
`((t :foreground ,(catppuccin-get-color 'text)
|
||||
:background ,(catppuccin-get-color 'base)
|
||||
:weight bold
|
||||
))
|
||||
"Custom face for buffer name"
|
||||
:group 'mode-line-faces )
|
||||
(defface mode-line-maj-mode
|
||||
`((t :foreground ,(catppuccin-get-color 'text)
|
||||
:background ,(catppuccin-get-color 'base)
|
||||
))
|
||||
"Custom face for major mode"
|
||||
:group 'mode-line-faces )
|
||||
|
||||
(defface mode-line-vc
|
||||
`((t :foreground ,(catppuccin-get-color 'base)
|
||||
:background ,(catppuccin-get-color 'sky)
|
||||
:weight bold
|
||||
))
|
||||
"Custom face for VC"
|
||||
:group 'mode-line-faces )
|
||||
(defface mode-line-info
|
||||
`((t :foreground ,(catppuccin-get-color 'base)
|
||||
:background ,(catppuccin-get-color 'green)
|
||||
:weight bold
|
||||
))
|
||||
"For showing line and column number"
|
||||
:group 'mode-line-faces )
|
||||
|
||||
|
||||
(setq-default mode-line-format
|
||||
'((:propertize " %b " face mode-line-buf-name)
|
||||
(vc-mode (:propertize (" " vc-mode " " ) face mode-line-vc))
|
||||
(:propertize (" " mode-name " ") face mode-line-maj-mode)
|
||||
(:propertize (" [[ %l | %c || %p . %+%@ ]] ") face mode-line-info)))
|
||||
|
||||
(setq exclude-ln '(term-mode-hook eshell-mode-hook shell-mode-hook))
|
||||
(while exclude-ln
|
||||
(add-hook (car exclude-ln) (lambda () (display-line-numbers-mode 0)))
|
||||
(setq exclude-ln (cdr exclude-ln)))
|
||||
(let ((default-color (cons (face-background 'mode-line)
|
||||
(face-foreground 'mode-line))))
|
||||
(add-hook 'post-command-hook
|
||||
(lambda ()
|
||||
(let ((color (cond ((minibufferp) default-color)
|
||||
((evil-insert-state-p) (cons (catppuccin-get-color 'mauve) (catppuccin-get-color 'base)))
|
||||
((evil-normal-state-p) (cons (catppuccin-get-color 'yellow) (catppuccin-get-color 'base)))
|
||||
((evil-visual-state-p) (cons (catppuccin-get-color 'teal) (catppuccin-get-color 'base)))
|
||||
((buffer-modified-p) (cons (catppuccin-get-color 'red) (catppuccin-get-color 'text)))
|
||||
(t default-color))))
|
||||
(set-face-background 'mode-line-buf-name (car color))
|
||||
(set-face-foreground 'mode-line-buf-name (cdr color))))))
|
||||
(use-package doom-modeline
|
||||
:ensure t
|
||||
:hook (after-init . doom-modeline-mode))
|
||||
#+end_src
|
||||
|
||||
* Pop-up terminal
|
||||
@@ -467,7 +409,7 @@ Stolen from [[https://www.reddit.com/r/emacs/comments/ft84xy/run_shell_command_i
|
||||
(vterm-send-return)))
|
||||
#+end_src
|
||||
|
||||
This returns the command to run in the terminal
|
||||
Compilation shortcuts for standalone files
|
||||
#+begin_src emacs-lisp
|
||||
(defun candrun ()
|
||||
(let ((full buffer-file-name)
|
||||
@@ -480,8 +422,8 @@ This returns the command to run in the terminal
|
||||
("hs" (concat "runhaskell " full))
|
||||
("sh" (concat "sh " full))
|
||||
("js" (concat "node " full))
|
||||
("ts" (concat "tsc" full " && node " file ".js && rm " file ".js" ))
|
||||
("rs" (concat "rustc" full " -o " file " && " file " && rm " file)))))
|
||||
("ts" (concat "tsc " full " && node " file ".js && rm " file ".js" ))
|
||||
("rs" (concat "rustc " full " -o " file " && " file " && rm " file)))))
|
||||
#+end_src
|
||||
|
||||
* Custom Functions
|
||||
@@ -512,17 +454,17 @@ This returns the command to run in the terminal
|
||||
'(visual normal motion))
|
||||
|
||||
(with-eval-after-load 'general
|
||||
(general-define-key
|
||||
(general-define-key
|
||||
:states evil-states
|
||||
"M-c" 'comment-line
|
||||
"C-c M-c" 'comment-box)
|
||||
|
||||
(general-define-key
|
||||
(general-define-key
|
||||
:states '(normal insert)
|
||||
"M-C-f" 'lsp-format-buffer
|
||||
"C-S-v" 'yank)
|
||||
|
||||
(general-define-key
|
||||
(general-define-key
|
||||
:keymaps '(global override vterm-mode-map)
|
||||
:states evil-states
|
||||
"M-o" 'treemacs
|
||||
@@ -546,7 +488,7 @@ This returns the command to run in the terminal
|
||||
|
||||
*** Pop-up terminal specific keybinds
|
||||
#+begin_src emacs-lisp
|
||||
(with-eval-after-load 'vterm-toggle
|
||||
(with-eval-after-load 'vterm-toggle
|
||||
(general-define-key
|
||||
:keymaps '(global override vterm-mode-map)
|
||||
:states evil-states
|
||||
@@ -557,23 +499,5 @@ This returns the command to run in the terminal
|
||||
(general-define-key
|
||||
:keymaps 'vterm-mode-map
|
||||
"<f2>" 'vterm-toggle-forward
|
||||
"<f3>" 'vterm-toggle-backward))
|
||||
#+end_src
|
||||
|
||||
*** Toggle Appearance
|
||||
#+begin_src emacs-lisp
|
||||
(defun toggle-theme-shade ()
|
||||
(if (symbol-value dark-theme)
|
||||
(progn (setq catppuccin-flavor 'latte)
|
||||
(catppuccin-reload))
|
||||
(progn (setq catppuccin-flavor 'mocha)
|
||||
(catppuccin-reload)))
|
||||
(setq-local dark-theme (not dark-theme))
|
||||
(centaur-tabs-display-update)
|
||||
(centaur-tabs-headline-match))
|
||||
|
||||
(general-define-key
|
||||
:states '(normal)
|
||||
"<f7>" (lambda () (interactive) (toggle-theme-shade)))
|
||||
)
|
||||
"<f3>" 'vterm-toggle-backward)))
|
||||
#+end_src
|
||||
|
@@ -1,4 +1,7 @@
|
||||
monitor=,preferred,auto,1
|
||||
monitor=eDP-1, preferred, auto, 1, bitdepth, 10
|
||||
monitor=HDMI-A-1, preferred, auto, 1
|
||||
workspace=eDP-1, 1
|
||||
workspace=HDMI-A-1, 10
|
||||
|
||||
input {
|
||||
kb_layout = us
|
||||
@@ -11,6 +14,7 @@ input {
|
||||
|
||||
touchpad {
|
||||
natural_scroll = yes
|
||||
scroll_factor = 0.4
|
||||
}
|
||||
|
||||
repeat_delay = 300
|
||||
@@ -31,7 +35,7 @@ general {
|
||||
decoration {
|
||||
rounding = 1
|
||||
blur = yes
|
||||
blur_size = 6
|
||||
blur_size = 5
|
||||
blur_passes = 1
|
||||
blur_new_optimizations = on
|
||||
blur_xray = yes
|
||||
@@ -156,4 +160,10 @@ bind=$mainMod SHIFT, 8, movetoworkspacesilent, 8
|
||||
bind=$mainMod SHIFT, 9, movetoworkspacesilent, 9
|
||||
bind=$mainMod SHIFT, 0, movetoworkspacesilent, 10
|
||||
|
||||
bind=$mainMod SHIFT, comma, focusmonitor, -1
|
||||
bind=$mainMod SHIFT, period, focusmonitor, +1
|
||||
|
||||
bind=CTRL ALT, r, pass, ^(com\.obsproject\.Studio)$
|
||||
|
||||
exec-once=eww open bar
|
||||
exec-once=swaybg -i ~/Wallpapers/current.*
|
||||
|
@@ -3,13 +3,23 @@ let
|
||||
mymacs = config: # with inputs.emacs-overlay.packages.${pkgs.system}; already resolved with overlay
|
||||
with pkgs; emacsWithPackagesFromUsePackage {
|
||||
inherit config;
|
||||
package = emacsPgtk;
|
||||
package = emacsPgtkGcc;
|
||||
alwaysEnsure = true;
|
||||
alwaysTangle = true;
|
||||
extraEmacsPackages = epkgs: with epkgs; [
|
||||
use-package
|
||||
(epkgs.tree-sitter-langs.withPlugins (_: epkgs.tree-sitter-langs.plugins))
|
||||
];
|
||||
override = epkgs: epkgs // {
|
||||
catppuccin-theme = epkgs.melpaPackages.catppuccin-theme.overrideAttrs (_: {
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "natto1784";
|
||||
repo = "catppuccin-emacs";
|
||||
rev = "company";
|
||||
sha256 = "sha256-wI+RiOeRrvV5eXXVs6hBb3x9BMD9HgHmsjom7kzAFJg=";
|
||||
};
|
||||
});
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
|
@@ -2,14 +2,15 @@
|
||||
let
|
||||
key = "53EC089EF230E47A83BA8F8195949BD4B853F559";
|
||||
host = "mail.weirdnatto.in";
|
||||
realName = "Amneesh Singh";
|
||||
address = "natto@weirdnatto.in";
|
||||
in
|
||||
{
|
||||
accounts.email = {
|
||||
accounts = {
|
||||
natto = rec {
|
||||
realName = "Amneesh Singh";
|
||||
inherit address realName;
|
||||
primary = true;
|
||||
address = "natto@weirdnatto.in";
|
||||
userName = address;
|
||||
gpg = {
|
||||
inherit key;
|
||||
@@ -61,7 +62,7 @@ in
|
||||
};
|
||||
};
|
||||
home = {
|
||||
packages = with pkgs; [ mailcap ];
|
||||
packages = with pkgs; [ mailcap w3m ];
|
||||
file = {
|
||||
mailcap = {
|
||||
source = ./config/mailcap;
|
||||
|
@@ -1,33 +1,3 @@
|
||||
$rosewater: #F5E0DC;
|
||||
$flamingo: #F2CDCD;
|
||||
$pink: #F5C2E7;
|
||||
$mauve: #CBA6F7;
|
||||
$red: #F38BA8;
|
||||
$maroon: #EBA0AC;
|
||||
$peach: #FAB387;
|
||||
$yellow: #F9E2AF;
|
||||
$green: #A6E3A1;
|
||||
$teal: #94E2D5;
|
||||
$sky: #89DCEB;
|
||||
$sapphire: #74C7EC;
|
||||
$blue: #89B4FA;
|
||||
$lavender: #B4BEFE;
|
||||
$text: #CDD6F4;
|
||||
$subtext1: #BAC2DE;
|
||||
$subtext0: #A6ADC8;
|
||||
$overlay2: #9399B2;
|
||||
$overlay1: #7F849C;
|
||||
$overlay0: #6C7086;
|
||||
$surface2: #585B70;
|
||||
$surface1: #45475A;
|
||||
$surface0: #313244;
|
||||
$base: #1E1E2E;
|
||||
$mantle: #181825;
|
||||
$crust: #11111B;
|
||||
|
||||
$background: $base;
|
||||
$foreground: $text;
|
||||
|
||||
* {
|
||||
all: unset;
|
||||
}
|
||||
@@ -78,6 +48,7 @@ tooltip {
|
||||
.workspace-active {
|
||||
@include color-shadow($mauve, $on-hover: 0);
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.workspace-inactive {
|
||||
@@ -106,7 +77,7 @@ tooltip {
|
||||
.music-large {
|
||||
border: solid 3px $sapphire;
|
||||
color: $mauve;
|
||||
border-radius: 5px;
|
||||
border-radius: 8px;
|
||||
|
||||
.music-large-cover {
|
||||
background-size: cover;
|
||||
|
@@ -85,7 +85,7 @@
|
||||
:monitor 0
|
||||
:geometry (geometry
|
||||
:x "0%"
|
||||
:y "20px"
|
||||
:y "10px"
|
||||
:width "0%"
|
||||
:height "0%"
|
||||
:anchor "top center")
|
||||
|
@@ -1 +1,31 @@
|
||||
$rosewater: #F5E0DC;
|
||||
$flamingo: #F2CDCD;
|
||||
$pink: #F5C2E7;
|
||||
$mauve: #CBA6F7;
|
||||
$red: #F38BA8;
|
||||
$maroon: #EBA0AC;
|
||||
$peach: #FAB387;
|
||||
$yellow: #F9E2AF;
|
||||
$green: #A6E3A1;
|
||||
$teal: #94E2D5;
|
||||
$sky: #89DCEB;
|
||||
$sapphire: #74C7EC;
|
||||
$blue: #89B4FA;
|
||||
$lavender: #B4BEFE;
|
||||
$text: #CDD6F4;
|
||||
$subtext1: #BAC2DE;
|
||||
$subtext0: #A6ADC8;
|
||||
$overlay2: #9399B2;
|
||||
$overlay1: #7F849C;
|
||||
$overlay0: #6C7086;
|
||||
$surface2: #585B70;
|
||||
$surface1: #45475A;
|
||||
$surface0: #313244;
|
||||
$base: #1E1E2E;
|
||||
$mantle: #181825;
|
||||
$crust: #11111B;
|
||||
|
||||
$background: $base;
|
||||
$foreground: $text;
|
||||
|
||||
@import "bar/bar.scss"
|
||||
|
@@ -25,12 +25,13 @@
|
||||
powertop
|
||||
cachix
|
||||
undervolt
|
||||
w3m
|
||||
|
||||
# GUI utils
|
||||
(discord.override {
|
||||
nss = nss_latest;
|
||||
})
|
||||
inputs.webcord.legacyPackages.${pkgs.system}.webcord
|
||||
webcord
|
||||
(xfce.thunar.override {
|
||||
thunarPlugins = with xfce; [
|
||||
thunar-media-tags-plugin
|
||||
@@ -51,9 +52,10 @@
|
||||
# Wine and games and stuff
|
||||
steam
|
||||
winetricks
|
||||
# (inputs.nix-gaming.packages.${pkgs.system}.osu-stable)
|
||||
(flake.packages.${pkgs.system}.tlauncher)
|
||||
lutris
|
||||
flake.packages.${pkgs.system}.tlauncher
|
||||
mangohud
|
||||
inputs.nix-gaming.packages.${pkgs.system}.osu-stable
|
||||
|
||||
# Programming and dev stuff
|
||||
rust-analyzer
|
||||
|
@@ -55,5 +55,6 @@
|
||||
slurp
|
||||
inputs.hyprland-contrib.packages.${pkgs.system}.grimblast
|
||||
wl-clipboard
|
||||
swaybg
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user