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))) (let* ((fpath (telega--tl-get dfile :local :path)))
(shell-command (format "wl-copy < \"%s\"" fpath)) (shell-command (format "wl-copy < \"%s\"" fpath))
(message (format "File saved to clipboard: %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 ;;layout ; auie,ctsrnm is the superior home row
:completion :completion
;;company ; the ultimate code completion backend (company +childframe) ; the ultimate code completion backend
(corfu +orderless) ; complete with cap(f), cape and a flying feather! ;;(corfu +orderless) ; complete with cap(f), cape and a flying feather!
;;helm ; the *other* search engine for love and life ;;helm ; the *other* search engine for love and life
;;ido ; the other *other* search engine... ;;ido ; the other *other* search engine...
;;ivy ; a search engine for love and life ;;ivy ; a search engine for love and life

View file

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