more cleanup. soon to be free of all nonsense

master
Rostyslav Hnatyshyn (Student) 3 years ago
parent 070fbe7a6b
commit b2b734113c
  1. 48
      .gitignore
  2. 2
      Xresources
  3. 26
      bashrc
  4. 58
      emacs
  5. 10
      emacs_home.el

48
.gitignore vendored

@ -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,6 +1,6 @@
!! URxvt Appearance
urxvt*termName: rxvt-256color
urxvt*font: xft:Terminus:style=Regular:size=12
!urxvt*font: xft:Terminus:style=Regular:size=12
Xft.autohint: true
Xft.antialias: true
Xft.hinting: true

@ -8,15 +8,39 @@ if [[ -f ~/.bash_home ]]; then
. ~/.bash_home
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 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
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)\]"
GREENER="\[$(tput setaf 2)\]"
RESET="\[$(tput sgr0)\]"
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 <<<

58
emacs

@ -5,7 +5,16 @@
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/") t)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
(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
(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)
(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)
(use-package company)
@ -58,8 +67,7 @@ Return a list of installed packages or nil for every skipped package."
(when (fboundp 'windmove-default-keybindings)
(windmove-default-keybindings))
(setq-default cursor-type 'bar)
(setq backup-directory-alist '(("" . "~/.emacs.d/backup")))
(require 'which-key)
(which-key-mode)
(use-package dashboard
@ -68,39 +76,29 @@ Return a list of installed packages or nil for every skipped package."
(setq dashboard-set-footer nil
dashboard-org-agenda-categories '("Tasks" "appointments")))
(setq interprogram-cut-function nil)
(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)
(menu-bar-mode -1)
(toggle-scroll-bar -1)
(tool-bar-mode -1)
(require 'neotree)
(global-set-key [f8] 'neotree-toggle)
;; org settings
(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 "/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)
(require `neotree)
(global-set-key [f8] `neotree-toggle)
(setq custom-file (concat user-emacs-directory "custom.el"))
(load custom-file 'noerror)
;;(cond ((file-exists-p "~/.emacs_home.el") (load "~/.emacs_home.el")))
(cond ((file-exists-p "~/.emacs_home.el") (load "~/.emacs_home.el")))
;;; .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.
)

@ -57,28 +57,28 @@
(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"
"~/Documents/org-mode/school.org"
"~/Documents/org-mode/untitled_project.org"
"~/Documents/org-mode/personal.org"))
(add-to-list 'auto-mode-alist '("neomutt" . mail-mode))
(setq appt-message-warning-time 15
appt-display-format 'window)
(appt-activate 1)
(defun notify-send (title msg)
(interactive)
(shell-command (concat "notify-send '" title "' '" msg "'")))
(defun facade-notify-appt (min-to-app new-time msg)
(notify-send (format "Appointment in %s minute(s)" min-to-app) msg))
(setq appt-disp-window-function (function facade-notify-appt))
(add-hook 'diary-list-entries-hook 'diary-sort-entries t)
;; not perfect, messes up theme if you switch from terminal to gui and
;; vice versa, but whatever
(add-hook 'after-make-frame-functions
(lambda (frame)
(select-frame frame)

Loading…
Cancel
Save