From 0c346dbaabcc485f41957d88397bb52713d2b756 Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Wed, 14 Jul 2021 08:45:27 +0200 Subject: [PATCH] add emacs everywhere --- files/.config/i3/config | 1 + files/init.el | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/files/.config/i3/config b/files/.config/i3/config index c807c45..3c0d9ad 100644 --- a/files/.config/i3/config +++ b/files/.config/i3/config @@ -10,6 +10,7 @@ workspace_layout stacking bindsym $mod+Return exec alacritty bindsym $mod+d exec --no-startup-id dmenu_run bindsym $mod+Ctrl+e exec "emacsclient -c" +bindsym $mod+e exec "emacsclient --eval '(emacs-everywhere)'" bindsym $mod+Shift+s exec "flameshot gui" ### keybinds for moving windows diff --git a/files/init.el b/files/init.el index fb18818..4fb6a9f 100644 --- a/files/init.el +++ b/files/init.el @@ -523,7 +523,29 @@ :config (setq graphviz-dot-indent-width 4)) +;; use my beauty everywhere +(use-package emacs-everywhere + :ensure t + :hook + (emacs-everywhere-mode . (lambda () (set-input-method "math"))) + :config + (setq emacs-everywhere-markdown-apps nil) + (setq emacs-everywhere-markdown-windows nil)) + ;; load local file (when (file-exists-p "~/.emacs.d/local.el") (message "Loading ~/.emacs.d/local.el") (load-file "~/.emacs.d/local.el")) +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(package-selected-packages + '(emacs-everywhere yasnippet-snippets which-key treemacs-projectile treemacs-magit treemacs-evil rust-mode rainbow-mode quelpa-use-package org-fragtog org-bullets nyan-mode math-symbol-lists lsp-ui lsp-java lsp-ivy lsp-haskell graphviz-dot-mode general flycheck fill-column-indicator exec-path-from-shell evil-collection dtrt-indent doom-themes doom-modeline counsel-projectile company-box auctex))) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + )