diff --git a/bashrc b/bashrc index 1de8545..885eb54 100644 --- a/bashrc +++ b/bashrc @@ -10,13 +10,14 @@ fi # later switch to emacs client when the emacs server is running alias emacs='emacsclient -ct --eval "(load \"~/.emacs\")"' +alias killEmacs='systemctl --user disable --now emacs' +alias startEmacs='systemctl --user enable --now emacs' alias ls='ls --color=auto' alias diff='diff --color=auto' alias grep='grep --color=auto' alias cp="rsync -r --progress" alias mv="rsync -aP --remove-source-files" - export PATH=/home/local/ASUAD/rhnatysh/ParaView/install/bin:$PATH # paraview Python module path vars diff --git a/emacs b/emacs index 684c753..6922f86 100644 --- a/emacs +++ b/emacs @@ -13,8 +13,15 @@ (menu-bar-mode -1) (tool-bar-mode -1) (column-number-mode t) +(set-fringe-mode 10) +(setq visible-bell t) (setq vc-handled-backends nil) +(setq mouse-wheel-scroll-amount '(1 ((shift) . 1))) ;; one line at a time +(setq mouse-wheel-progressive-speed nil) ;; don't accelerate scrolling +(setq mouse-wheel-follow-mouse 't) ;; scroll window under mouse +(setq scroll-step 1) ;; keyboard scroll one line at a time + (setq custom-file (concat user-emacs-directory "custom.el")) (load custom-file 'noerror) @@ -44,7 +51,7 @@ Return a list of installed packages or nil for every skipped package." (or (file-exists-p package-user-dir) (package-refresh-contents)) -[[id:0cfa8bbd-3d96-47c9-8e3c-0e9eededb349][ASU MS Thesis]](ensure-package-installed 'use-package 'ivy 'magit 'centaur-tabs 'eglot 'telephone-line 'dashboard 'multiple-cursors 'flycheck 'which-key 'restart-emacs 'doom-themes 'rainbow-mode 'rainbow-delimiters 'neotree 'all-the-icons 'elpy 'rustic 'simpleclip 'messages-are-flowing 'hl-todo 'format-all 'auctex 'counsel 'swiper 'projectile 'org-roam) +(ensure-package-installed 'use-package 'ivy 'magit 'centaur-tabs 'eglot 'telephone-line 'dashboard 'multiple-cursors 'flycheck 'which-key 'restart-emacs 'doom-themes 'rainbow-mode 'rainbow-delimiters 'neotree 'all-the-icons 'elpy 'rustic 'simpleclip 'messages-are-flowing 'hl-todo 'format-all 'auctex 'counsel 'swiper 'projectile 'org-roam) (use-package company) (add-hook 'after-init-hook 'global-company-mode) diff --git a/emacs_home.el b/emacs_home.el index 6dfa3d2..f41d36f 100644 --- a/emacs_home.el +++ b/emacs_home.el @@ -6,8 +6,21 @@ (set-frame-font "Iosevka:size=16") (use-package all-the-icons) -(setq org-roam-directory (file-truename "~/Documents/slipbox")) -(org-roam-db-autosync-mode) +(use-package org-roam + :ensure t + :init + (setq org-roam-v2-ack t) + :custom + (org-roam-directory "~/Documents/slipbox") + (org-roam-completion-everywhere t) + :bind (("C-c n l" . org-roam-buffer-toggle) + ("C-c n f" . org-roam-node-find) + ("C-c n i" . org-roam-node-insert) + :map org-mode-map + ("C-M-i" . completion-at-point) + :config + (org-roam-setup) + (org-roam-db-autosync-mode))) (add-to-list 'auto-mode-alist '("neomutt" . mail-mode)) (setq appt-message-warning-time 15 @@ -19,6 +32,7 @@ (defun facade-notify-appt (min-to-app new-time msg) (notify-send (format "Appointment in %s minute(s)" min-to-app) msg)) +(add-hook 'mail-mode-hook 'flyspell-mode 1) (setq appt-disp-window-function (function facade-notify-appt)) (provide 'emacs_home)