More misc emacs settings, org roam + way to kill emacs server.

master
Rostyslav Hnatyshyn 3 years ago
parent 025efe4a24
commit aa913ef6c9
  1. 3
      bashrc
  2. 9
      emacs
  3. 18
      emacs_home.el

@ -10,13 +10,14 @@ fi
# later switch to emacs client when the emacs server is running # later switch to emacs client when the emacs server is running
alias emacs='emacsclient -ct --eval "(load \"~/.emacs\")"' 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 ls='ls --color=auto'
alias diff='diff --color=auto' alias diff='diff --color=auto'
alias grep='grep --color=auto' alias grep='grep --color=auto'
alias cp="rsync -r --progress" alias cp="rsync -r --progress"
alias mv="rsync -aP --remove-source-files" alias mv="rsync -aP --remove-source-files"
export PATH=/home/local/ASUAD/rhnatysh/ParaView/install/bin:$PATH export PATH=/home/local/ASUAD/rhnatysh/ParaView/install/bin:$PATH
# paraview Python module path vars # paraview Python module path vars

@ -13,8 +13,15 @@
(menu-bar-mode -1) (menu-bar-mode -1)
(tool-bar-mode -1) (tool-bar-mode -1)
(column-number-mode t) (column-number-mode t)
(set-fringe-mode 10)
(setq visible-bell t)
(setq vc-handled-backends nil) (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")) (setq custom-file (concat user-emacs-directory "custom.el"))
(load custom-file 'noerror) (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) (or (file-exists-p package-user-dir)
(package-refresh-contents)) (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) (use-package company)
(add-hook 'after-init-hook 'global-company-mode) (add-hook 'after-init-hook 'global-company-mode)

@ -6,8 +6,21 @@
(set-frame-font "Iosevka:size=16") (set-frame-font "Iosevka:size=16")
(use-package all-the-icons) (use-package all-the-icons)
(setq org-roam-directory (file-truename "~/Documents/slipbox")) (use-package org-roam
(org-roam-db-autosync-mode) :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)) (add-to-list 'auto-mode-alist '("neomutt" . mail-mode))
(setq appt-message-warning-time 15 (setq appt-message-warning-time 15
@ -19,6 +32,7 @@
(defun facade-notify-appt (min-to-app new-time msg) (defun facade-notify-appt (min-to-app new-time msg)
(notify-send (format "Appointment in %s minute(s)" min-to-app) 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)) (setq appt-disp-window-function (function facade-notify-appt))
(provide 'emacs_home) (provide 'emacs_home)

Loading…
Cancel
Save