diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 0190d35..f04b12b 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -154,6 +154,14 @@ (require 'flymake-shell) (add-hook 'sh-set-shell-hook 'flymake-shell-load) +;; Default font +(defun rc/get-default-font () + (cond + ((eq system-type 'windows-nt) "Consolas-13") + ((eq system-type 'gnu/linux) "xos4 Terminus Bold 16"))) + +(add-to-list 'default-frame-alist `(font . ,(rc/get-default-font))) + ;; Theme (use-package dracula-theme :ensure t @@ -168,6 +176,11 @@ (require 'dired-sidebar) (global-set-key (kbd "C-x d") 'dired-sidebar-toggle-sidebar) +;; Smex +(require 'smex) +(smex-initialize) +(global-set-key (kbd "M-x") 'smex) + ;;buffer-move (require 'buffer-move) (global-set-key (kbd "") 'buf-move-up) @@ -175,6 +188,16 @@ (global-set-key (kbd "") 'buf-move-left) (global-set-key (kbd "") 'buf-move-right) +;; Multiple-cursors +(use-package multiple-cursors + :ensure t + :config +) + +(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) ;; Magit (use-package magit diff --git a/.zshrc b/.zshrc index d9d1fc3..20554ef 100644 --- a/.zshrc +++ b/.zshrc @@ -50,7 +50,7 @@ export FZF_DEFAULT_OPTS='--height 40% --layout=reverse' export EIX_LIMIT_COMPACT=0 export TERMINAL="st" export QT_SCALE_FACTOR=1.5 -export VISUAL='emacs' +export VISUAL='vim' export EDITOR='vim' alias svm="sudo vim /etc/portage/make.conf" alias svr="sudo vim /etc/portage/repos.conf"