more cleanup. soon to be free of all nonsense
This commit is contained in:
+48
@@ -0,0 +1,48 @@
|
|||||||
|
# -*- mode: gitignore; -*-
|
||||||
|
*~
|
||||||
|
\#*\#
|
||||||
|
/.emacs.desktop
|
||||||
|
/.emacs.desktop.lock
|
||||||
|
*.elc
|
||||||
|
auto-save-list
|
||||||
|
tramp
|
||||||
|
.\#*
|
||||||
|
|
||||||
|
# Org-mode
|
||||||
|
.org-id-locations
|
||||||
|
*_archive
|
||||||
|
|
||||||
|
# flymake-mode
|
||||||
|
*_flymake.*
|
||||||
|
|
||||||
|
# eshell files
|
||||||
|
/eshell/history
|
||||||
|
/eshell/lastdir
|
||||||
|
|
||||||
|
# elpa packages
|
||||||
|
/elpa/
|
||||||
|
|
||||||
|
# reftex files
|
||||||
|
*.rel
|
||||||
|
|
||||||
|
# AUCTeX auto folder
|
||||||
|
/auto/
|
||||||
|
|
||||||
|
# cask packages
|
||||||
|
.cask/
|
||||||
|
dist/
|
||||||
|
|
||||||
|
# Flycheck
|
||||||
|
flycheck_*.el
|
||||||
|
|
||||||
|
# server auth directory
|
||||||
|
/server/
|
||||||
|
|
||||||
|
# projectiles files
|
||||||
|
.projectile
|
||||||
|
|
||||||
|
# directory configuration
|
||||||
|
.dir-locals.el
|
||||||
|
|
||||||
|
# network security
|
||||||
|
/network-security.data
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
!! URxvt Appearance
|
!! URxvt Appearance
|
||||||
urxvt*termName: rxvt-256color
|
urxvt*termName: rxvt-256color
|
||||||
urxvt*font: xft:Terminus:style=Regular:size=12
|
!urxvt*font: xft:Terminus:style=Regular:size=12
|
||||||
Xft.autohint: true
|
Xft.autohint: true
|
||||||
Xft.antialias: true
|
Xft.antialias: true
|
||||||
Xft.hinting: true
|
Xft.hinting: true
|
||||||
|
|||||||
@@ -8,15 +8,39 @@ if [[ -f ~/.bash_home ]]; then
|
|||||||
. ~/.bash_home
|
. ~/.bash_home
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#alias emacs='emacsclient -ct'
|
# later switch to emacs client when the emacs server is running
|
||||||
|
alias emacs='emacsclient -ct'
|
||||||
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
|
||||||
|
|
||||||
|
# paraview Python module path vars
|
||||||
|
export LD_LIBRARY_PATH=/home/local/ASUAD/rhnatysh/ParaView/install/lib:$LD_LIBRARY_PATH
|
||||||
|
export PYTHONPATH=/home/local/ASUAD/rhnatysh/ParaView/install/lib/python3.8/site-packages/:$PYTHONPATH
|
||||||
|
|
||||||
GREEN="\[$(tput setaf 4)\]"
|
GREEN="\[$(tput setaf 4)\]"
|
||||||
GREENER="\[$(tput setaf 2)\]"
|
GREENER="\[$(tput setaf 2)\]"
|
||||||
RESET="\[$(tput sgr0)\]"
|
RESET="\[$(tput sgr0)\]"
|
||||||
|
|
||||||
PS1="${GREEN}\u@\h ${GREENER}\W ${RESET}> "
|
PS1="${GREEN}\u@\h ${GREENER}\W ${RESET}> "
|
||||||
|
|
||||||
|
# >>> conda initialize >>>
|
||||||
|
# !! Contents within this block are managed by 'conda init' !!
|
||||||
|
__conda_setup="$('/home/local/ASUAD/rhnatysh/Apps/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
eval "$__conda_setup"
|
||||||
|
else
|
||||||
|
if [ -f "/home/local/ASUAD/rhnatysh/Apps/miniconda3/etc/profile.d/conda.sh" ]; then
|
||||||
|
. "/home/local/ASUAD/rhnatysh/Apps/miniconda3/etc/profile.d/conda.sh"
|
||||||
|
else
|
||||||
|
export PATH="/home/local/ASUAD/rhnatysh/Apps/miniconda3/bin:$PATH"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
unset __conda_setup
|
||||||
|
# <<< conda initialize <<<
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,15 @@
|
|||||||
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
|
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
|
||||||
(package-initialize)
|
(package-initialize)
|
||||||
|
|
||||||
|
;; emacs preferences
|
||||||
|
(setq-default cursor-type 'bar)
|
||||||
|
(global-hl-line-mode 1)
|
||||||
|
(menu-bar-mode -1)
|
||||||
|
(toggle-scroll-bar -1)
|
||||||
|
(tool-bar-mode -1)
|
||||||
|
(setq interprogram-cut-function nil)
|
||||||
|
(setq backup-directory-alist '(("" . "~/.emacs.d/backup")))
|
||||||
|
|
||||||
(eval-when-compile
|
(eval-when-compile
|
||||||
(require 'use-package))
|
(require 'use-package))
|
||||||
|
|
||||||
@@ -29,7 +38,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))
|
||||||
|
|
||||||
(ensure-package-installed 'smex 'magit `centaur-tabs `eglot `telephone-line `dashboard `multiple-cursors `flycheck `which-key `restart-emacs `doom-themes `rainbow-delimiters `neotree `all-the-icons)
|
(ensure-package-installed 'use-package 'smex 'magit 'centaur-tabs 'eglot 'telephone-line 'dashboard 'multiple-cursors 'flycheck 'which-key 'restart-emacs 'doom-themes 'rainbow-delimiters 'neotree 'all-the-icons)
|
||||||
(package-initialize)
|
(package-initialize)
|
||||||
|
|
||||||
(use-package company)
|
(use-package company)
|
||||||
@@ -58,8 +67,7 @@ Return a list of installed packages or nil for every skipped package."
|
|||||||
(when (fboundp 'windmove-default-keybindings)
|
(when (fboundp 'windmove-default-keybindings)
|
||||||
(windmove-default-keybindings))
|
(windmove-default-keybindings))
|
||||||
|
|
||||||
(setq-default cursor-type 'bar)
|
(require 'which-key)
|
||||||
(setq backup-directory-alist '(("" . "~/.emacs.d/backup")))
|
|
||||||
(which-key-mode)
|
(which-key-mode)
|
||||||
|
|
||||||
(use-package dashboard
|
(use-package dashboard
|
||||||
@@ -68,39 +76,29 @@ Return a list of installed packages or nil for every skipped package."
|
|||||||
(setq dashboard-set-footer nil
|
(setq dashboard-set-footer nil
|
||||||
dashboard-org-agenda-categories '("Tasks" "appointments")))
|
dashboard-org-agenda-categories '("Tasks" "appointments")))
|
||||||
|
|
||||||
(setq interprogram-cut-function nil)
|
|
||||||
|
|
||||||
(require 'multiple-cursors)
|
(require 'multiple-cursors)
|
||||||
(global-set-key (kbd "C-S-c C-S-c") 'mc/edit-lines)
|
(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-next-like-this)
|
||||||
(global-set-key (kbd "C-<") 'mc/mark-previous-like-this)
|
(global-set-key (kbd "C-<") 'mc/mark-previous-like-this)
|
||||||
(global-set-key (kbd "C-c C-<") 'mc/mark-all-like-this)
|
(global-set-key (kbd "C-c C-<") 'mc/mark-all-like-this)
|
||||||
|
|
||||||
(menu-bar-mode -1)
|
(require 'neotree)
|
||||||
(toggle-scroll-bar -1)
|
(global-set-key [f8] 'neotree-toggle)
|
||||||
(tool-bar-mode -1)
|
|
||||||
|
|
||||||
(require `neotree)
|
;; org settings
|
||||||
(global-set-key [f8] `neotree-toggle)
|
(setq org-replace-disputed-keys t)
|
||||||
|
(define-key global-map "\C-cl" 'org-store-link)
|
||||||
|
(define-key global-map "\C-ca" 'org-agenda)
|
||||||
|
(setq org-log-done t)
|
||||||
|
|
||||||
;;(cond ((file-exists-p "~/.emacs_home.el") (load "~/.emacs_home.el")))
|
(setq org-agenda-files (list "/home/local/ASUAD/rhnatysh/Seafile/Emacs/Org Notes/Notes.org"
|
||||||
|
"/home/local/ASUAD/rhnatysh/Seafile/Emacs/Org Notes/school.org"))
|
||||||
|
|
||||||
|
(add-hook 'diary-list-entries-hook 'diary-sort-entries t)
|
||||||
|
|
||||||
|
(setq custom-file (concat user-emacs-directory "custom.el"))
|
||||||
|
(load custom-file 'noerror)
|
||||||
|
|
||||||
|
(cond ((file-exists-p "~/.emacs_home.el") (load "~/.emacs_home.el")))
|
||||||
|
|
||||||
;;; .emacs ends here
|
;;; .emacs 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-enabled-themes (quote (doom-wilmersdorf)))
|
|
||||||
'(custom-safe-themes
|
|
||||||
(quote
|
|
||||||
("a6e620c9decbea9cac46ea47541b31b3e20804a4646ca6da4cce105ee03e8d0e" "a9a67b318b7417adbedaab02f05fa679973e9718d9d26075c6235b1f0db703c8" default)))
|
|
||||||
'(package-selected-packages
|
|
||||||
(quote
|
|
||||||
(restart-emacs which-key flycheck use-package telephone-line smex multiple-cursors magit eglot dashboard company centaur-tabs))))
|
|
||||||
(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.
|
|
||||||
)
|
|
||||||
|
|||||||
+5
-5
@@ -57,28 +57,28 @@
|
|||||||
(cfw:cal-create-source "Orange")
|
(cfw:cal-create-source "Orange")
|
||||||
)))
|
)))
|
||||||
|
|
||||||
(setq org-replace-disputed-keys t)
|
|
||||||
(define-key global-map "\C-cl" 'org-store-link)
|
|
||||||
(define-key global-map "\C-ca" 'org-agenda)
|
|
||||||
(setq org-log-done t)
|
|
||||||
(setq org-agenda-files (list "~/Documents/org-mode/tweaking.org"
|
(setq org-agenda-files (list "~/Documents/org-mode/tweaking.org"
|
||||||
"~/Documents/org-mode/school.org"
|
"~/Documents/org-mode/school.org"
|
||||||
"~/Documents/org-mode/untitled_project.org"
|
"~/Documents/org-mode/untitled_project.org"
|
||||||
"~/Documents/org-mode/personal.org"))
|
"~/Documents/org-mode/personal.org"))
|
||||||
|
|
||||||
(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
|
||||||
appt-display-format 'window)
|
appt-display-format 'window)
|
||||||
(appt-activate 1)
|
(appt-activate 1)
|
||||||
|
|
||||||
(defun notify-send (title msg)
|
(defun notify-send (title msg)
|
||||||
(interactive)
|
(interactive)
|
||||||
(shell-command (concat "notify-send '" title "' '" msg "'")))
|
(shell-command (concat "notify-send '" title "' '" msg "'")))
|
||||||
(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))
|
||||||
(setq appt-disp-window-function (function facade-notify-appt))
|
(setq appt-disp-window-function (function facade-notify-appt))
|
||||||
|
|
||||||
(add-hook 'diary-list-entries-hook 'diary-sort-entries t)
|
(add-hook 'diary-list-entries-hook 'diary-sort-entries t)
|
||||||
|
|
||||||
;; not perfect, messes up theme if you switch from terminal to gui and
|
;; not perfect, messes up theme if you switch from terminal to gui and
|
||||||
;; vice versa, but whatever
|
;; vice versa, but whatever
|
||||||
|
|
||||||
(add-hook 'after-make-frame-functions
|
(add-hook 'after-make-frame-functions
|
||||||
(lambda (frame)
|
(lambda (frame)
|
||||||
(select-frame frame)
|
(select-frame frame)
|
||||||
|
|||||||
Reference in New Issue
Block a user