Better emoji support in emacs (+ other)

This commit is contained in:
marc
2025-09-20 16:48:22 +02:00
parent 97b58f141a
commit ed00a90dda
5 changed files with 27 additions and 8 deletions

View File

@@ -12,6 +12,7 @@
;; Fonts ;; Fonts
(setq doom-font (font-spec :family "Iosevka Nerd Font" :size 18)) (setq doom-font (font-spec :family "Iosevka Nerd Font" :size 18))
(setq doom-symbol-font (font-spec :family "Iosevka Nerd Font" :size 18)) (setq doom-symbol-font (font-spec :family "Iosevka Nerd Font" :size 18))
(setq doom-emoji-font (font-spec :family "Noto Color Emoji" :size 18))
;; Themeing ;; Themeing
(use-package base16-theme (use-package base16-theme
@@ -48,13 +49,25 @@
(setq-default tab-width 4) (setq-default tab-width 4)
;; -----------------------------------------------------------------------------
;; Emojify
;; -----------------------------------------------------------------------------
(use-package! emojify
:config
(when (member "Noto Color Emoji" (font-family-list))
(set-fontset-font
t 'emoji (font-spec :family "Noto Color Emoji") nil 'prepend))
(setq emojify-display-style 'image)
(setq emojify-emoji-styles '(unicode)))
;; ----------------------------------------------------------------------------- ;; -----------------------------------------------------------------------------
;; Projectile ;; Projectile
;; ----------------------------------------------------------------------------- ;; -----------------------------------------------------------------------------
(use-package projectile (use-package projectile
:config :config
(setq projectile-project-search-path '("~/projects"))) (setq projectile-project-search-path '("~/projects")))
;; ----------------------------------------------------------------------------- ;; -----------------------------------------------------------------------------
;; vterm ;; vterm
@@ -62,7 +75,7 @@
(use-package vterm (use-package vterm
:config :config
(setq vterm-shell "zsh")) (setq vterm-shell "zsh"))
;; ----------------------------------------------------------------------------- ;; -----------------------------------------------------------------------------
;; elisp ;; elisp
@@ -94,13 +107,13 @@
;; accept underscore as part of a word ;; accept underscore as part of a word
(superword-mode 1) (superword-mode 1)
(modify-syntax-entry ?_ "w" python-mode-syntax-table)) (modify-syntax-entry ?_ "w" python-mode-syntax-table))
(add-hook 'python-mode-hook 'my-python-mode-hook) (add-hook 'python-mode-hook 'my-python-mode-hook)
(use-package py-autopep8 (use-package py-autopep8
:config :config
(setq py-autopep8-options '("--max-line-length=120"))) (setq py-autopep8-options '("--max-line-length=120")))
(use-package pipenv (use-package pipenv
:config :config
(setq pipenv-with-projectile t) (setq pipenv-with-projectile t)
@@ -138,8 +151,8 @@
("lambda" "λ") ("lambda" "λ")
("not in" "") ("not in" "")
("in" "")) ("in" ""))
(pretty-hook emacs-lisp-mode) (pretty-hook emacs-lisp-mode)
;; ("defun" "𝙛") ;; ("defun" "𝙛")

View File

@@ -30,7 +30,7 @@
doom ; what makes DOOM look the way it does doom ; what makes DOOM look the way it does
doom-dashboard ; a nifty splash screen for Emacs doom-dashboard ; a nifty splash screen for Emacs
;; doom-quit ; DOOM quit-message prompts when you quit Emacs ;; doom-quit ; DOOM quit-message prompts when you quit Emacs
;;(emoji +unicode) ; 🙂 (emoji +unicode) ; 🙂
;; fill-column ; a `fill-column' indicator ;; fill-column ; a `fill-column' indicator
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
;;hydra ;;hydra

View File

@@ -3,7 +3,7 @@
with lib; with lib;
let let
nix-colors-lib = inputs.nix-colors.lib-contrib { inherit pkgs; }; nix-colors-lib = inputs.nix-colors.lib-contrib { inherit pkgs; };
wallpaper = ../../data/wallpapers/wallhaven/canyon.jpg; wallpaper = ../../data/wallpapers/globus.jpg;
in in
{ {
imports = [ imports = [

View File

@@ -19,6 +19,11 @@ in
userName = cfg.userName; userName = cfg.userName;
userEmail = cfg.userEmail; userEmail = cfg.userEmail;
ignores = [
".direnv"
".project"
];
extraConfig = { extraConfig = {
init.defaultBranch = "main"; init.defaultBranch = "main";
}; };

View File

@@ -53,6 +53,7 @@ in {
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
iosevka iosevka
emacs-all-the-icons-fonts emacs-all-the-icons-fonts
noto-fonts-color-emoji
]; ];
env.PATH = [ "$HOME/.config/emacs/bin" ]; env.PATH = [ "$HOME/.config/emacs/bin" ];