Improve emacs configuration

This commit is contained in:
ulic-youthlic 2025-09-17 00:25:17 +08:00
parent e8a9d45a76
commit 9fbcd61b14
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
3 changed files with 16 additions and 3 deletions

View file

@ -79,3 +79,7 @@ NOTE: wayland only."
(let* ((fpath (telega--tl-get dfile :local :path)))
(shell-command (format "wl-copy < \"%s\"" fpath))
(message (format "File saved to clipboard: %s" fpath))))))))
(map! :map global-map
"C-c n"
#'helm-nixos-options)

View file

@ -23,8 +23,8 @@
;;layout ; auie,ctsrnm is the superior home row
:completion
;;company ; the ultimate code completion backend
(corfu +orderless) ; complete with cap(f), cape and a flying feather!
(company +childframe) ; the ultimate code completion backend
;;(corfu +orderless) ; complete with cap(f), cape and a flying feather!
;;helm ; the *other* search engine for love and life
;;ido ; the other *other* search engine...
;;ivy ; a search engine for love and life

View file

@ -2,10 +2,18 @@
config,
lib,
pkgs,
inputs,
...
}:
let
cfg = config.david.programs.doom;
inherit (inputs) emacs-overlay nixpkgs;
inherit (pkgs) system;
pkgs' = import nixpkgs {
inherit system;
overlays = [ emacs-overlay.overlays.default ];
};
in
{
options = {
@ -18,10 +26,11 @@ in
services.emacs.enable = true;
programs.doom-emacs = {
enable = true;
emacs = pkgs.emacs-pgtk;
emacs = pkgs'.emacs-igc-pgtk;
extraPackages =
ep: with ep; [
melpaPackages.telega
melpaPackages.nixos-options
];
extraBinPackages = with pkgs; [
editor-runtime