diff options
Diffstat (limited to '.emacs.d')
-rw-r--r-- | .emacs.d/init.el | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 1005a92..4bb4cab 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -2,7 +2,7 @@ (require 'package) (add-to-list 'load-path "~/.emacs.d/lisp/") - +(load "~/.emacs.d/custom.el") (load "~/.emacs.d/lisp/init-exwm.el") (setq package-archives '(("melpa" . "https://melpa.org/packages/") @@ -35,8 +35,8 @@ ;Visible bell (setq visible-bell t) ;;Transparency -(set-frame-parameter (selected-frame) 'alpha '(90 80)) -(add-to-list 'default-frame-alist '(alpha 90 50)) +;;(set-frame-parameter (selected-frame) 'alpha '(90 80)) +;;(add-to-list 'default-frame-alist '(alpha 90 50)) @@ -68,10 +68,12 @@ (use-package doom-themes :init (load-theme 'doom-dracula t)) - +;; (use-package dracula-theme +;; :init (load-theme 'dracula t)) (use-package all-the-icons :ensure t) +(use-package the-matrix-theme) (use-package doom-modeline :ensure t @@ -131,7 +133,9 @@ ;; Make ESC quit prompts (global-set-key (kbd "<escape>") 'keyboard-escape-quit) - (use-package general + +(define-prefix-command 'window) +(use-package general :config (general-create-definer apollo/leader-keys :keymaps '(normal insert visual emacs) @@ -301,6 +305,10 @@ visual-fill-column-center-text nil) (visual-fill-column-mode 1)) +(defadvice org-edit-src-code (around set-buffer-file-name activate compile) + (let ((file-name (buffer-file-name))) ;; (1) + ad-do-it ;; (2) + (setq buffer-file-name file-name))) ;; (3) (use-package visual-fill-column) @@ -326,9 +334,11 @@ (add-hook 'org-mode-hook (lambda () (add-hook 'after-save-hook #'apollo/org-babel-tangle-config))) ;;instal flyckeck -(use-package flycheck) +(use-package flycheck + :init + (global-flycheck-mode)) ;;Enable globally -(global-flycheck-mode) + ;;setup lsp-mode (defun apollo/lsp-mode-setup () @@ -451,17 +461,20 @@ (setq elfeed-goodies/entry-pane-size 0.5)) -;;init.el ends here (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. + '(custom-safe-themes + '("7a4784fc0c0c853c578132e81a757a0f9b3e675fdd7e56303f3ee1fb8d7ae2a3" "2dc03dfb67fbcb7d9c487522c29b7582da20766c9998aaad5e5b63b5c27eec3f" "944d52450c57b7cbba08f9b3d08095eb7a5541b0ecfb3a0a9ecd4a18f3c28948" "443e2c3c4dd44510f0ea8247b438e834188dc1c6fb80785d83ad3628eadf9294" "554c2be54aecbbd3a6317906ada2e8f25f50f8d6bf3d9c22e3b30e3700d0bbd1" "5f128efd37c6a87cd4ad8e8b7f2afaba425425524a68133ac0efd87291d05874" "bf948e3f55a8cd1f420373410911d0a50be5a04a8886cabe8d8e471ad8fdba8e" "fb2c27e7ad4a81c2f57bceeca0faeb1c84fb7a167c097b998e2a1ea314455fd6" "47f3e55e4e3d570d5513d4cc58047dc059bd6ab3d135c796c4ccbfb77d4eb88b" "1070069a4671554a2c00b8375485896c1aa8144f5b8d99b86845069351770ee9" "e8483bc21cf667971eabdbb01203e3a471de1b59a4e532368b7a20f5665d686a" "b7bf7b95fb796614f0b36a7c4906a93db75ad0c6146f336c7ed085f6fceef93d" "05b767a3f3a37ac46353fd88f194934d82eb6c3644c3b8da883752f57513e7aa" default)) '(package-selected-packages - '(dmenu exwm which-key vterm visual-fill-column use-package typescript-mode smart-cursor-color ranger rainbow-delimiters python-x python-mode prettier-js pdf-tools org-superstar org-evil org-bullets modus-themes magit lsp-ui lsp-ivy json-mode js2-mode ivy-rich helpful god-mode general flycheck eyebrowse evil-collection elpy elisp-lint elfeed-goodies doom-themes doom-modeline dired-ranger dap-mode counsel-projectile company-box command-log-mode buttercup all-the-icons))) + '(something moe-theme zenburn-theme dracula-theme the-matrix-theme ef-themes dmenu exwm which-key vterm visual-fill-column use-package typescript-mode smart-cursor-color ranger rainbow-delimiters python-x python-mode prettier-js pdf-tools org-superstar org-evil org-bullets modus-themes magit lsp-ui lsp-ivy json-mode js2-mode ivy-rich helpful god-mode general flycheck eyebrowse evil-collection elpy elisp-lint elfeed-goodies doom-themes doom-modeline dired-ranger dap-mode counsel-projectile company-box command-log-mode buttercup all-the-icons))) (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. ) +(put 'downcase-region 'disabled nil) +(put 'dired-find-alternate-file 'disabled nil) |