emacs: Add fcitx, latex and web mode.
Lilim/emacs: Change enabled packages.
This commit is contained in:
parent
fafa62f917
commit
8295a87aa8
4 changed files with 81 additions and 10 deletions
|
@ -19,30 +19,33 @@ with lib;
|
|||
];
|
||||
pkgs = [
|
||||
"base"
|
||||
"cpp"
|
||||
"dict"
|
||||
"emacs"
|
||||
"emacs::doom-themes"
|
||||
"emacs::doom-modeline"
|
||||
# "emacs::solarized-theme"
|
||||
"emacs::company"
|
||||
"emacs::flyspell"
|
||||
"emacs::doom-modeline"
|
||||
"emacs::doom-themes"
|
||||
"emacs::elpy"
|
||||
"emacs::flycheck"
|
||||
# "emacs::powerline"
|
||||
"emacs::nix-mode"
|
||||
"emacs::flyspell"
|
||||
"emacs::latex"
|
||||
"emacs::magit"
|
||||
"emacs::mu4e"
|
||||
"emacs::nix-mode"
|
||||
"emacs::org"
|
||||
"emacs::elpy"
|
||||
"emacs::fcitx"
|
||||
"emacs::transmission"
|
||||
# "emacs::rust"
|
||||
# "emacs::lsp"
|
||||
"emacs::web-mode"
|
||||
"extra"
|
||||
"cpp"
|
||||
"haskell"
|
||||
"mail_utils"
|
||||
"python3"
|
||||
"rustpkgs"
|
||||
"xpkgs"
|
||||
# "emacs::lsp"
|
||||
# "emacs::powerline"
|
||||
# "emacs::rust"
|
||||
# "emacs::solarized-theme"
|
||||
];
|
||||
services = [
|
||||
"desktop"
|
||||
|
|
16
pkgs/pkgsets/emacs/fcitx.nix
Normal file
16
pkgs/pkgsets/emacs/fcitx.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
mkIf (elem "emacs::fcitx" config.machine.pkgs) {
|
||||
programs.emacs.init.usePackage = {
|
||||
fcitx = {
|
||||
enable = true;
|
||||
demand = true;
|
||||
config = ''
|
||||
;; (setq fcitx-use-dbus t)
|
||||
(fcitx-default-setup)
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
27
pkgs/pkgsets/emacs/latex.nix
Normal file
27
pkgs/pkgsets/emacs/latex.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
mkIf (elem "emacs::latex" config.machine.pkgs) {
|
||||
programs.emacs.init.usePackage = {
|
||||
latex-mode = {
|
||||
enable = true;
|
||||
package = epkgs: null;
|
||||
defer = true;
|
||||
};
|
||||
|
||||
tex-site = {
|
||||
enable = true;
|
||||
defer = true;
|
||||
package = epkgs: epkgs.auctex;
|
||||
hook = [];
|
||||
mode = [ ''("\\.tex\\'" . TeX-latex-mode)'' ];
|
||||
};
|
||||
|
||||
preview = {
|
||||
enable = true;
|
||||
defer = true;
|
||||
package = epkgs: epkgs.auctex;
|
||||
};
|
||||
};
|
||||
}
|
25
pkgs/pkgsets/emacs/web-mode.nix
Normal file
25
pkgs/pkgsets/emacs/web-mode.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
mkIf (elem "emacs::web-mode" config.machine.pkgs) {
|
||||
programs.emacs.init.usePackage.web-mode = {
|
||||
enable = true;
|
||||
mode = [
|
||||
''("\\.html?\\'" . web-mode)''
|
||||
''("\\.phtml\\'" . web-mode)''
|
||||
''("\\.tpl\\.php\\'" . web-mode)''
|
||||
''("\\.[agj]sp\\'" . web-mode)''
|
||||
''("\\.as[cp]x\\'" . web-mode)''
|
||||
''("\\.erb\\'" . web-mode)''
|
||||
''("\\.mustache\\'" . web-mode)''
|
||||
''("\\.djhtml\\'" . web-mode)''
|
||||
];
|
||||
config = ''
|
||||
(setq web-mode-engines-alist
|
||||
'(("php" . "\\.phtml\\'")
|
||||
("blade" . "\\.blade\\."))
|
||||
)
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue