diff --git a/.emacs b/.emacs index c893055..8f2f0de 100644 --- a/.emacs +++ b/.emacs @@ -27,11 +27,13 @@ (is-installed 'which-key) (require 'which-key) (which-key-mode) - ;;+++++++++++++ ;; frame size ;;(setq initial-frame-alist '((top . 325)(left . 0) ;; (width . 80)(height . 50))) +;; set transparency +(set-frame-parameter (selected-frame) 'alpha '(95 . 50)) +(add-to-list 'default-frame-alist '(alpha . (95 . 50))) ;;+++++++++++ ;; Doom-themes, all-the-icons, mode-line and font (unless (package-installed-p 'doom-themes) @@ -161,6 +163,7 @@ Then run FUN with ARGS." ;; my keybindings: (global-set-key (kbd "C-c C-k") 'python-shell-send-chunk) + ;;==================== ;; emacs startup config (setq inhibit-startup-message nil) ;;inhibit startup @@ -175,17 +178,32 @@ Then run FUN with ARGS." (add-hook 'prog-mode-hook 'display-line-numbers-mode) ;; display line number when programming (show-paren-mode +1) ;; show matching parentheses ;;--------- + +;; 2.6 ace-window +(is-installed 'ace-window) +(global-set-key (kbd "M-o") 'ace-window) +;; 2.7 avy +(is-installed 'avy) +(avy-setup-default) +(global-set-key (kbd "M-g f") 'avy-goto-line) +;; 2.8 multiple-cursors +(is-installed 'multiple-cursors) +(require 'multiple-cursors) +(global-set-key (kbd "C-S-c C-S-c") 'mc/edit-lines) +(global-set-key (kbd "C->") 'mc/mark-next-like-this) +(global-set-key (kbd "C-<") 'mc/mark-previous-like-this) +(global-set-key (kbd "C-c C-<") 'mc/mark-all-like-this) + (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 - '("b0e446b48d03c5053af28908168262c3e5335dcad3317215d9fdeb8bac5bacf9" default)) + '("e19ac4ef0f028f503b1ccafa7c337021834ce0d1a2bca03fcebc1ef635776bea" "b0e446b48d03c5053af28908168262c3e5335dcad3317215d9fdeb8bac5bacf9" "4133d2d6553fe5af2ce3f24b7267af475b5e839069ba0e5c80416aa28913e89a" "fe2539ccf78f28c519541e37dc77115c6c7c2efcec18b970b16e4a4d2cd9891d" "4f1d2476c290eaa5d9ab9d13b60f2c0f1c8fa7703596fa91b235db7f99a9441b" default)) '(package-selected-packages - '(anaconda-mode which-key use-package pyvenv pdf-tools org-ref neotree markdown-mode jedi helm doom-themes doom-modeline docker-compose-mode auctex)) - '(safe-local-variable-values - '((LaTeX-includegraphics-read-file . LaTeX-includegraphics-read-file-relative)))) + '(multiple-cursors ace-window which-key use-package pyvenv pdf-tools org-ref neotree markdown-mode jedi helm doom-themes doom-modeline docker-compose-mode auctex anaconda-mode))) + (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful.