Browse Source

Doom Emacs changes

main
Yigit Colakoglu 4 years ago
parent
commit
f9f16bb0e0
50 changed files with 542 additions and 17 deletions
  1. +23
    -0
      .config/doom/config.el
  2. +3
    -4
      .config/doom/init.el
  3. +290
    -0
      .config/doom/org-conf.el
  4. +4
    -0
      .config/doom/packages.el
  5. +5
    -0
      .config/doom/snippets/nand-hdl-mode/ALU
  6. +5
    -0
      .config/doom/snippets/nand-hdl-mode/ARegister
  7. +5
    -0
      .config/doom/snippets/nand-hdl-mode/Add16
  8. +5
    -0
      .config/doom/snippets/nand-hdl-mode/And
  9. +5
    -0
      .config/doom/snippets/nand-hdl-mode/And16
  10. +5
    -0
      .config/doom/snippets/nand-hdl-mode/Bit
  11. +5
    -0
      .config/doom/snippets/nand-hdl-mode/CPU
  12. +5
    -0
      .config/doom/snippets/nand-hdl-mode/DFF
  13. +5
    -0
      .config/doom/snippets/nand-hdl-mode/DMux
  14. +5
    -0
      .config/doom/snippets/nand-hdl-mode/DMux4Way
  15. +5
    -0
      .config/doom/snippets/nand-hdl-mode/DMux8Way
  16. +5
    -0
      .config/doom/snippets/nand-hdl-mode/DRegister
  17. +5
    -0
      .config/doom/snippets/nand-hdl-mode/FullAdder
  18. +5
    -0
      .config/doom/snippets/nand-hdl-mode/HalfAdder
  19. +5
    -0
      .config/doom/snippets/nand-hdl-mode/Inc16
  20. +5
    -0
      .config/doom/snippets/nand-hdl-mode/Keyboard
  21. +5
    -0
      .config/doom/snippets/nand-hdl-mode/Memory
  22. +5
    -0
      .config/doom/snippets/nand-hdl-mode/Mux
  23. +5
    -0
      .config/doom/snippets/nand-hdl-mode/Mux16
  24. +5
    -0
      .config/doom/snippets/nand-hdl-mode/Mux4Way16
  25. +5
    -0
      .config/doom/snippets/nand-hdl-mode/Mux8Way16
  26. +5
    -0
      .config/doom/snippets/nand-hdl-mode/Nand
  27. +5
    -0
      .config/doom/snippets/nand-hdl-mode/Not
  28. +5
    -0
      .config/doom/snippets/nand-hdl-mode/Not16
  29. +5
    -0
      .config/doom/snippets/nand-hdl-mode/Or
  30. +5
    -0
      .config/doom/snippets/nand-hdl-mode/Or16
  31. +5
    -0
      .config/doom/snippets/nand-hdl-mode/Or8Way
  32. +5
    -0
      .config/doom/snippets/nand-hdl-mode/PC
  33. +5
    -0
      .config/doom/snippets/nand-hdl-mode/RAM16K
  34. +5
    -0
      .config/doom/snippets/nand-hdl-mode/RAM4K
  35. +5
    -0
      .config/doom/snippets/nand-hdl-mode/RAM512
  36. +5
    -0
      .config/doom/snippets/nand-hdl-mode/RAM64
  37. +5
    -0
      .config/doom/snippets/nand-hdl-mode/RAM8
  38. +5
    -0
      .config/doom/snippets/nand-hdl-mode/ROM32K
  39. +5
    -0
      .config/doom/snippets/nand-hdl-mode/Register
  40. +5
    -0
      .config/doom/snippets/nand-hdl-mode/Screen
  41. +5
    -0
      .config/doom/snippets/nand-hdl-mode/Xor
  42. +0
    -8
      .config/doom/templates/template.org
  43. +1
    -1
      .config/htop/htoprc
  44. +14
    -0
      .config/imapfilter/config.lua
  45. +1
    -0
      .config/nextcloud/nextcloud
  46. +1
    -0
      .config/zsh/aliases
  47. +3
    -3
      .local/bin/dmenu-logout
  48. +15
    -0
      .local/bin/saveclipimg
  49. +1
    -1
      .local/share/dwm/autostart.sh
  50. +1
    -0
      .profile

+ 23
- 0
.config/doom/config.el View File

@ -119,6 +119,19 @@ user-mail-address "yigit@yigitcolakoglu.com")
(use-package! calfw-org (use-package! calfw-org
:after calfw) :after calfw)
(use-package! org-download
:defer
:init
;; Org download
(setq-default org-download-image-dir "~/Pictures/org/")
(setq-default org-download-method 'directory)
(setq-default org-download-screenshot-method "scrot")
:config
(org-download-enable)
)
(add-hook! 'dired-mode-hook 'org-download-enable)
(use-package! org-agenda (use-package! org-agenda
:defer :defer
:init :init
@ -285,6 +298,9 @@ user-mail-address "yigit@yigitcolakoglu.com")
nand-hdl-directory "~/Projects/nand2tetris" nand-hdl-directory "~/Projects/nand2tetris"
css-indent-offset 2) css-indent-offset 2)
(org-babel-do-load-languages
'org-babel-load-languages
'((dot . t))) ;
(setq auth-sources (setq auth-sources
'((:source "~/.config/emacs/.authinfo.gpg"))) '((:source "~/.config/emacs/.authinfo.gpg")))
@ -292,6 +308,13 @@ user-mail-address "yigit@yigitcolakoglu.com")
(defun insert-current-date () (interactive) (defun insert-current-date () (interactive)
(insert (shell-command-to-string "echo -n $(date +%Y-%m-%d)"))) (insert (shell-command-to-string "echo -n $(date +%Y-%m-%d)")))
(defun org-insert-clipboard-image () (interactive)
(setq name (read-from-minibuffer "Enter image description: "))
(setq file (concat "./static/" (subst-char-in-string ? ?_ (nth 0 (org-get-outline-path t))) "/" (format-time-string "%Y-%m-%dT%T") "_" (subst-char-in-string ? ?_ name) ".png"))
(setq return (shell-command-to-string (concat "saveclipimg " file)))
(insert (concat "[[file:" return"][" name "]]"))
(org-display-inline-images))
;; We expect the encoding to be LF UTF-8, so only show the modeline when this is not the case ;; We expect the encoding to be LF UTF-8, so only show the modeline when this is not the case
(defun doom-modeline-conditional-buffer-encoding () (defun doom-modeline-conditional-buffer-encoding ()
(setq-local doom-modeline-buffer-encoding (setq-local doom-modeline-buffer-encoding


+ 3
- 4
.config/doom/init.el View File

@ -9,7 +9,6 @@
+childframe) ; a nicer company UI. Emacs +26 only! +childframe) ; a nicer company UI. Emacs +26 only!
(ivy (ivy
+icons +icons
+childframe
+prescient +prescient
+fuzzy) ; a search engine for love and life +fuzzy) ; a search engine for love and life
@ -78,7 +77,7 @@
:lang :lang
assembly ; assembly for fun or debugging assembly ; assembly for fun or debugging
cc ; C/C++/Obj-C madness
(cc +lsp) ; C/C++/Obj-C madness
;; crystal ; ruby at the speed of c ;; crystal ; ruby at the speed of c
;; clojure ; java with a lisp ;; clojure ; java with a lisp
;; csharp ; unity, .NET, and mono shenanigans ;; csharp ; unity, .NET, and mono shenanigans
@ -117,7 +116,7 @@
+capture ; org-capture in and outside of Emacs +capture ; org-capture in and outside of Emacs
+export ; Exporting org to whatever you want +export ; Exporting org to whatever you want
+present) ; Emacs for presentations +present) ; Emacs for presentations
;; +publish ; Emacs+Org as a static site generator
+publish ; Emacs+Org as a static site generator
;; perl ; write code no one else can comprehend ;; perl ; write code no one else can comprehend
php ; perl's insecure younger brother php ; perl's insecure younger brother
@ -128,7 +127,7 @@
;; ruby ; 1.step do {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"} ;; ruby ; 1.step do {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
;; rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap() ;; rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
;; scala ; java, but good ;; scala ; java, but good
sh ; she sells (ba|z)sh shells on the C xor
(sh +lsp) ; she sells (ba|z)sh shells on the C xor
;; swift ; who asked for emoji variables? ;; swift ; who asked for emoji variables?
web ; the tubes web ; the tubes


+ 290
- 0
.config/doom/org-conf.el View File

@ -0,0 +1,290 @@
;;; $DOOMDIR/org-conf.el -*- lexical-binding: t; -*-
;;; org-conf.el<2> --- Description
;; Author: Yigit Colakoglu yigit@yigitcolakoglu.com
;; Copyright (C) Symbol’s value as variable is void: %Y, Yigit Colakoglu, all rights reserved.
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
;;; Commentary:
;; This file contains the org-mode specific configuration for my emacs config
;;
;;; Code:
(setq org-export-with-section-numbers nil)
(setq org-agenda-files (directory-files org-directory t "\\.org$" t))
(setq org-display-remote-inline-images 'download)
(setq org-agenda-include-deadlines t)
(setq org-agenda-dim-blocked-tasks 'invisible)
(setq org-latex-packages-alist '(("margin=1in" "geometry" nil))) ;; adjusting the margins of latex output
(setq org-format-latex-options (plist-put org-format-latex-options :scale 2.5)) ;; making latex previews larger
(setq org-bullets-bullet-list '("·"))
(setq org-log-done 'time)
(setq org-tags-column -80)
(setq org-refile-targets (quote ((nil :maxlevel . 1))))
(setq org-hugo-base-dir "~/Projects/fr1nge.xyz")
(setq org-hugo-default-section-directory "~/Projects/fr1nge.xyz")
(setq org-todo-keywords '((sequence
"TODO"
"PROJ"
"NEXT(n)"
"PROG(p!)"
"WAIT(w@/!)"
"SOMEDAY"
"|"
"DONE(d)"
"CANCEL(c@)"
"DELEGATED(@)"
)
(sequence
"IDEA"
"GOAL"
"|"
"DUD(@)")
(sequence
"RD"
"RDING"
"RDNOTE"
"TMPDROP"
"|"
"DROP"
"FNSHED"
)
))
(setq org-fancy-priorities-list '("" "" "" ""))
(setq org-caldav-url "https://drive.yigitcolakoglu.com/remote.php/dav/calendars/yigitcolakoglu")
(setq org-icalendar-timezone "Europe/Istanbul")
(setq org-caldav-calendars
'((:calendar-id "pcalendar" :files ("~/Documents/org/pcalendar.org")
:inbox "~/.local/share/pcalendar.org")))
;; Mappings
(map! :ne "SPC m a c" #'org-insert-clipboard-image)
(map! :map calc-mode-map
:after calc
:localleader
:desc "Embedded calc (toggle)" "e" #'calc-embedded)
(map! :map org-mode-map
:after org
:localleader
:desc "Embedded calc (toggle)" "E" #'calc-embedded)
(map! :map latex-mode-map
:after latex
:localleader
:desc "Embedded calc (toggle)" "e" #'calc-embedded)
(map! :map org-mode-map
:after org
:localleader
:desc "Outline" "O" #'org-ol-tree)
;; Org Superstar
;;
(setq org-superstar-remove-leading-stars t)
(setq org-capture-templates
`(
("t" "Todo" entry (file ,(concat org-directory "personal.org"))
"* TODO %? \n%U" :empty-lines 1)
("d" "Todo deadline" entry (file ,(concat org-directory "personal.org"))
"* TODO %? \nDEADLINE: %^T\n%U" :empty-lines 1)
("w" "Wait deadline" entry (file ,(concat org-directory "personal.org"))
"* WAIT %? \nDEADLINE: %^T\n%U" :empty-lines 1)
("r" "Reading List" entry (file+olp ,(concat org-directory "reading_list.org") "Catchall")
"* RD %? \n%U" :empty-lines 1)
("i" "Idea" entry (file ,(concat org-directory "personal.org"))
"* IDEA %? \n%U" :empty-lines 1)
("s" "Someday" entry (file+olp ,(concat org-directory "someday.org") "Catchall")
"* SOMEDAY %? \n%U" :empty-lines 1)
("e" "Event" entry (file ,(concat org-directory "personal.org"))
"* %? \nSCHEDULED: %^T\n%U" :empty-lines 1)
("c" "Cookbook" entry (file ,(concat org-directory "cookbook.org"))
"%(org-chef-get-recipe-from-url)" :empty-lines 1)
("C" "Manual Cookbook" entry (file ,(concat org-directory "cookbook.org"))
"* %^{Recipe title: }\n :PROPERTIES:\n :source-url:\n :servings:\n :prep-time:\n :cook-time:\n :ready-in:\n :END:\n** Ingredients\n %?\n** Directions\n\n")
("j" "Journal entry" entry (function org-journal-find-location)
"* NEXT %?\n%U" :empty-lines 1)
("k" "Journal sched entry" entry (function org-journal-find-location)
"* %? %^T\n%U" :empty-lines 1)
("m" "Morning Journal entry" entry (function org-journal-find-location)
"* Morning Entry
** Checklist
- [ ] Make bed
- [ ] Brush Teeth
- [ ] Cook something nice
- [ ] Read for 20 pages
- [ ] Take note of things I am looking forward to in journal
- [ ] Wash face
- plan tips:
- don't put mentally straining todos after working out or eating.
- mentally chill stuff includes:
- relaxing reading
- article reading
** Looking Forward To %?
** Day Plan
** Determinations :determ:" :empty-lines 1)
("n" "Night Journal entry" entry (function org-journal-find-location)
"* Today's Learnings\n* My Day\n%U")
))
;; Org Journal
(defun org-journal-find-location ()
;; Open today's journal, but specify a non-nil prefix argument in order to
;; inhibit inserting the heading; org-capture will insert the heading.
(org-journal-new-entry t)
;; Position point on the journal's top-level heading so that org-capture
;; will add the new entry as a child entry.
(goto-char (point-min)))
(set-face-attribute 'org-table nil :inherit 'fixed-pitch)
(set-face-attribute 'org-block nil :inherit 'fixed-pitch)
;; Refile taken from here: https://www.reddit.com/r/emacs/comments/4366f9/how_do_orgrefiletargets_work/
(setq org-refile-targets '((nil :maxlevel . 9)
(org-agenda-files :maxlevel . 9)))
(setq org-outline-path-complete-in-steps nil) ; Refile in a single go
(setq org-refile-use-outline-path t) ; Show full paths for refiling
(setq org-refile-allow-creating-parent-nodes (quote confirm))
(setq org-pretty-entities t)
(setq org-hide-emphasis-markers t)
(setq org-fontify-whole-heading-line t)
(setq org-fontify-done-headline t)
(setq org-fontify-quote-and-verse-blocks t)
(setq org-tags-column 0)
(setq org-src-fontify-natively t)
(setq org-edit-src-content-indentation 0)
(setq org-src-tab-acts-natively t)
(setq org-src-preserve-indentation t)
(setq org-list-demote-modify-bullet '(("+" . "-") ("-" . "+") ("*" . "+") ("1." . "a.")))
(setq org-log-done 'time)
(provide 'org-conf.el)
;; Embedded Calc
(defvar calc-embedded-trail-window nil)
(defvar calc-embedded-calculator-window nil)
(defadvice! calc-embedded-with-side-pannel (&rest _)
:after #'calc-do-embedded
(when calc-embedded-trail-window
(ignore-errors
(delete-window calc-embedded-trail-window))
(setq calc-embedded-trail-window nil))
(when calc-embedded-calculator-window
(ignore-errors
(delete-window calc-embedded-calculator-window))
(setq calc-embedded-calculator-window nil))
(when (and calc-embedded-info
(> (* (window-width) (window-height)) 1200))
(let ((main-window (selected-window))
(vertical-p (> (window-width) 80)))
(select-window
(setq calc-embedded-trail-window
(if vertical-p
(split-window-horizontally (- (max 30 (/ (window-width) 3))))
(split-window-vertically (- (max 8 (/ (window-height) 4)))))))
(switch-to-buffer "*Calc Trail*")
(select-window
(setq calc-embedded-calculator-window
(if vertical-p
(split-window-vertically -6)
(split-window-horizontally (- (/ (window-width) 2))))))
(switch-to-buffer "*Calculator*")
(select-window main-window))))
(require 'ox-publish)
(setq org-publish-project-alist
'(
("roam-notes"
:base-directory "~/Documents/org/roam"
:base-extension "org"
:publishing-directory "~/Projects/wiki"
:recursive t
:publishing-function org-html-publish-to-html
:headline-levels 4 ; Just the default for this project.
:auto-preamble t
)
("roam-static"
:base-directory "~/Documents/org/roam/static"
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
:publishing-directory "~/Projects/wiki/static"
:recursive t
:publishing-function org-publish-attachment
)
("roam" :components ("roam-notes" "roam-static"))
))
;;; ol-man.el - Support for links to man pages in Org mode
;;; https://www.gnu.org/software/emacs/manual/html_node/org/Adding-Hyperlink-Types.html
(org-link-set-parameters "man"
:follow #'org-man-open
:export #'org-man-export
:store #'org-man-store-link)
(defcustom org-man-command 'man
"The Emacs command to be used to display a man page."
:group 'org-link
:type '(choice (const man) (const woman)))
(defun org-man-open (path _)
"Visit the manpage on PATH.
PATH should be a topic that can be thrown at the man command."
(funcall org-man-command path))
(defun org-man-store-link ()
"Store a link to a man page."
(when (memq major-mode '(Man-mode woman-mode))
;; This is a man page, we do make this link.
(let* ((page (org-man-get-page-name))
(link (concat "man:" page))
(description (format "Man page for %s" page)))
(org-link-store-props
:type "man"
:link link
:description description))))
(defun org-man-get-page-name ()
"Extract the page name from the buffer name."
;; This works for both `Man-mode' and `woman-mode'.
(if (string-match " \\(\\S-+\\)\\*" (buffer-name))
(match-string 1 (buffer-name))
(error "Cannot create link to this man page")))
(defun org-man-export (link description format _)
"Export a man page link from Org files."
(let ((path (format "http://man.he.net/?topic=%s&section=all" link))
(desc (or description link)))
(pcase format
(`html (format "<a target=\"_blank\" href=\"%s\">%s</a>" path desc))
(`latex (format "\\href{%s}{%s}" path desc))
(`texinfo (format "@uref{%s,%s}" path desc))
(`ascii (format "%s (%s)" desc path))
(t path))))
;;; org-conf.el<2> ends here.

+ 4
- 0
.config/doom/packages.el View File

@ -41,9 +41,13 @@
(package! nand-hdl-mode (package! nand-hdl-mode
:recipe (:host github :repo "nverno/nand-hdl-mode")) :recipe (:host github :repo "nverno/nand-hdl-mode"))
(package! org-download)
(package! browse-kill-ring) (package! browse-kill-ring)
(package! olivetti) (package! olivetti)
(package! ox-hugo) (package! ox-hugo)
(package! polymode) (package! polymode)
(package! counsel-org-clock) (package! counsel-org-clock)
(package! mathpix.el :recipe (:host github :repo "jethrokuan/mathpix.el")) (package! mathpix.el :recipe (:host github :repo "jethrokuan/mathpix.el"))
(package! python-django)
(package! org-super-links)
(package! xclip)

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/ALU View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: ALU(x= ,y= ,zx= ,nx= ,zy= ,ny= ,f= ,no= ,out= ,zr= ,ng= );
# key: ALU
# --
ALU(x=$1,y=$2,zx=$3,nx=$4,zy=$5,ny=$6,f=$7,no=$8,out=$9,zr=$10,ng=$11);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/ARegister View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: ARegister(in= ,load= ,out= );
# key: ARegister
# --
ARegister(in=$1,load=$2,out=$3);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/Add16 View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Add16(a= ,b= ,out= );
# key: Add16
# --
Add16(a=$1,b=$2,out=$3);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/And View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: And(a= ,b= ,out= );
# key: And
# --
And(a=$1,b=$2,out=$3);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/And16 View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: And16(a= ,b= ,out= );
# key: And16
# --
And16(a=$1,b=$2,out=$3);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/Bit View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Bit(in= ,load= ,out= );
# key: Bit
# --
Bit(in=$1,load=$2,out=$3);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/CPU View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: CPU(inM= ,instruction= ,reset= ,outM= ,writeM= ,addressM= ,pc= );
# key: CPU
# --
CPU(inM=$1,instruction=$2,reset=$3,outM=$4,writeM=$5,addressM=$6,pc=$7);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/DFF View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: DFF(in= ,out= );
# key: DFF
# --
DFF(in=$1,out=$2);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/DMux View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: DMux(in= ,sel= ,a= ,b= );
# key: DMux
# --
DMux(in=$1,sel=$2,a=$3,b=$4);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/DMux4Way View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: DMux4Way(in= ,sel= ,a= ,b= ,c= ,d= );
# key: DMux4Way
# --
DMux4Way(in=$1,sel=$2,a=$3,b=$4,c=$5,d=$6);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/DMux8Way View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: DMux8Way(in= ,sel= ,a= ,b= ,c= ,d= ,e= ,f= ,g= ,h= );
# key: DMux8Way
# --
DMux8Way(in=$1,sel=$2,a=$3,b=$4,c=$5,d=$6,e=$7,f=$8,g=$9,h=$10);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/DRegister View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: DRegister(in= ,load= ,out= );
# key: DRegister
# --
DRegister(in=$1,load=$2,out=$3);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/FullAdder View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: FullAdder(a= ,b= ,c= ,sum= ,carry= );
# key: FullAdder
# --
FullAdder(a=$1,b=$2,c=$3,sum=$4,carry=$5);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/HalfAdder View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: HalfAdder(a= ,b= ,sum= , carry= );
# key: HalfAdder
# --
HalfAdder(a=$1,b=$2,sum=$3,$4carry=$5);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/Inc16 View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Inc16(in= ,out= );
# key: Inc16
# --
Inc16(in=$1,out=$2);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/Keyboard View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Keyboard(out= );
# key: Keyboard
# --
Keyboard(out=$1);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/Memory View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Memory(in= ,load= ,address= ,out= );
# key: Memory
# --
Memory(in=$1,load=$2,address=$3,out=$4);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/Mux View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Mux(a= ,b= ,sel= ,out= );
# key: Mux
# --
Mux(a=$1,b=$2,sel=$3,out=$4);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/Mux16 View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Mux16(a= ,b= ,sel= ,out= );
# key: Mux16
# --
Mux16(a=$1,b=$2,sel=$3,out=$4);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/Mux4Way16 View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Mux4Way16(a= ,b= ,c= ,d= ,sel= ,out= );
# key: Mux4Way16
# --
Mux4Way16(a=$1,b=$2,c=$3,d=$4,sel=$5,out=$6);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/Mux8Way16 View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Mux8Way16(a= ,b= ,c= ,d= ,e= ,f= ,g= ,h= ,sel= ,out= );
# key: Mux8Way16
# --
Mux8Way16(a=$1,b=$2,c=$3,d=$4,e=$5,f=$6,g=$7,h=$8,sel=$9,out=$10);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/Nand View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Nand(a= ,b= ,out= );
# key: Nand
# --
Nand(a=$1,b=$2,out=$3);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/Not View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Not(in= ,out= );
# key: Not
# --
Not(in=$1,out=$2);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/Not16 View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Not16(in= ,out= );
# key: Not16
# --
Not16(in=$1,out=$2);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/Or View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Or(a= ,b= ,out= );
# key: Or
# --
Or(a=$1,b=$2,out=$3);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/Or16 View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Or16(a= ,b= ,out= );
# key: Or16
# --
Or16(a=$1,b=$2,out=$3);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/Or8Way View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Or8Way(in= ,out= );
# key: Or8Way
# --
Or8Way(in=$1,out=$2);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/PC View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: PC(in= ,load= ,inc= ,reset= ,out= );
# key: PC
# --
PC(in=$1,load=$2,inc=$3,reset=$4,out=$5);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/RAM16K View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: RAM16K(in= ,load= ,address= ,out= );
# key: RAM16K
# --
RAM16K(in=$1,load=$2,address=$3,out=$4);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/RAM4K View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: RAM4K(in= ,load= ,address= ,out= );
# key: RAM4K
# --
RAM4K(in=$1,load=$2,address=$3,out=$4);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/RAM512 View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: RAM512(in= ,load= ,address= ,out= );
# key: RAM512
# --
RAM512(in=$1,load=$2,address=$3,out=$4);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/RAM64 View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: RAM64(in= ,load= ,address= ,out= );
# key: RAM64
# --
RAM64(in=$1,load=$2,address=$3,out=$4);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/RAM8 View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: RAM8(in= ,load= ,address= ,out= );
# key: RAM8
# --
RAM8(in=$1,load=$2,address=$3,out=$4);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/ROM32K View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: ROM32K(address= ,out= );
# key: ROM32K
# --
ROM32K(address=$1,out=$2);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/Register View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Register(in= ,load= ,out= );
# key: Register
# --
Register(in=$1,load=$2,out=$3);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/Screen View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Screen(in= ,load= ,address= ,out= );
# key: Screen
# --
Screen(in=$1,load=$2,address=$3,out=$4);$0

+ 5
- 0
.config/doom/snippets/nand-hdl-mode/Xor View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Xor(a= ,b= ,out= );
# key: Xor
# --
Xor(a=$1,b=$2,out=$3);$0

+ 0
- 8
.config/doom/templates/template.org View File

@ -1,13 +1,5 @@
# -*- coding:utf-8 -*-
#+LANGUAGE: en #+LANGUAGE: en
#+TITLE: ${1:`(file-name-nondirectory (buffer-file-name))`} #+TITLE: ${1:`(file-name-nondirectory (buffer-file-name))`}
#+AUTHOR: `user-full-name` #+AUTHOR: `user-full-name`
#+EMAIL: `user-mail-address` #+EMAIL: `user-mail-address`
#+DATE: `(format-time-string "%Y-%m-%d %a" )` #+DATE: `(format-time-string "%Y-%m-%d %a" )`
#+DESCRIPTION:$1
#+KEYWORDS: $2
#+TAGS:$3
#+FILETAGS: $4
#+OPTIONS: H:2 num:nil toc:t \n:t @:t ::t |:t ^:nil -:t f:t *:t <:t
#+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil
#+LATEX_HEADER: \usepackage{fontspec}

+ 1
- 1
.config/htop/htoprc View File

@ -1,7 +1,7 @@
# Beware! This file is rewritten by htop when settings are changed in the interface. # Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly. # The parser is also very primitive, and not human-friendly.
fields=0 48 17 18 38 39 40 2 46 47 49 1 fields=0 48 17 18 38 39 40 2 46 47 49 1
sort_key=47
sort_key=46
sort_direction=1 sort_direction=1
tree_sort_key=0 tree_sort_key=0
tree_sort_direction=1 tree_sort_direction=1


+ 14
- 0
.config/imapfilter/config.lua View File

@ -57,5 +57,19 @@ function blockUni(blacklist)
end end
end end
-- Block e-mails that I'm too lazy to opt out of or can't figure out how
function blockSubject(blacklist)
mailboxes, folders = domain:list_all("/")
for _, v in pairs(mailboxes) do
for _, u in pairs(blacklist) do
m1 = domain[v]:contain_from(u)
m2 = hotmail[v]:contain_from(u)
m1:delete_messages()
m2:delete_messages()
end
end
end
fuckAleksandr {} fuckAleksandr {}
blockUni {"Hult", "hult"} blockUni {"Hult", "hult"}
blockSubject {"Coralogix", "Whereby", "Manuel Tarin", "Starbucks", "TIDAL", "Fahim from Educative", "Lancaster University Leipzig", "New York Institute of Technology"}

+ 1
- 0
.config/nextcloud/nextcloud View File

@ -1,5 +1,6 @@
#!/bin/bash #!/bin/bash
source ~/.profile
eval "$(grep -h -- \ eval "$(grep -h -- \
"^\s*\(export \)\?\(MBSYNCRC\|PASSWORD_STORE_DIR\|NOTMUCH_CONFIG\|GNUPGHOME\|XDG_DATA_HOME\|XDG_CONFIG_HOME\|XDG_RUNTIME_DIR\)=" \ "^\s*\(export \)\?\(MBSYNCRC\|PASSWORD_STORE_DIR\|NOTMUCH_CONFIG\|GNUPGHOME\|XDG_DATA_HOME\|XDG_CONFIG_HOME\|XDG_RUNTIME_DIR\)=" \


+ 1
- 0
.config/zsh/aliases View File

@ -52,6 +52,7 @@ alias dpall="dots remote | xargs -I R git --git-dir=$HOME/.dotfiles.git/ --work-
alias dignore="dots update-index --assume-unchanged {pkg.list,install.sh,README.md}" alias dignore="dots update-index --assume-unchanged {pkg.list,install.sh,README.md}"
alias da="dots add -u" alias da="dots add -u"
alias dcm="dots commit" alias dcm="dots commit"
alias pwndbg="gdb -nh -x \"$XDG_CONFIG_HOME\"/gdb/init"
alias bon="sudo bash -c 'rc-service bluetooth start && rfkill unblock bluetooth'" alias bon="sudo bash -c 'rc-service bluetooth start && rfkill unblock bluetooth'"


+ 3
- 3
.local/bin/dmenu-logout View File

@ -43,13 +43,13 @@ case $selection in
loginctl hibernate loginctl hibernate
;; ;;
suspend) suspend)
sudo /sbin/sleep
sudo sleep
;; ;;
reboot) reboot)
sudo /sbin/reboot
sudo reboot
;; ;;
halt|poweroff|shutdown) halt|poweroff|shutdown)
sudo /sbin/shutdown
sudo shutdown -h now
;; ;;
esac esac


+ 15
- 0
.local/bin/saveclipimg View File

@ -0,0 +1,15 @@
#!/bin/bash
location="$1"
mkdir -p "$(echo "$location" | sed 's|/[^/]*$||g')"
xclip -selection clipboard -t image/png -o 2> /dev/null > $location
if [ ! "$?" = "0" ]; then
printf "An error occured"
rm -f "$location"
exit 1
fi
printf "%s" "$location"

+ 1
- 1
.local/share/dwm/autostart.sh View File

@ -31,7 +31,7 @@ touch ~/.cache/nextcloud-track
restart_if_fails "xss-lock -- slock" restart_if_fails "xss-lock -- slock"
restart_if_fails "picom --no-fading-openclose" restart_if_fails "picom --no-fading-openclose"
restart_if_fails "xbanish -s"
restart_if_fails "xbanish"
# Start emacs # Start emacs
restart_if_fails "emacs --daemon && emacsclient -c --eval \"(delete-frame)\"" restart_if_fails "emacs --daemon && emacsclient -c --eval \"(delete-frame)\""


+ 1
- 0
.profile View File

@ -34,6 +34,7 @@ export BORG_KEYS_DIR="$XDG_DATA_HOME"/keys/borg
export CARGO_HOME="$XDG_DATA_HOME"/cargo export CARGO_HOME="$XDG_DATA_HOME"/cargo
export DOOMDIR="$XDG_CONFIG_HOME"/doom export DOOMDIR="$XDG_CONFIG_HOME"/doom
export GOPATH="$XDG_DATA_HOME"/go export GOPATH="$XDG_DATA_HOME"/go
export GDBHISTFILE="$XDG_DATA_HOME"/gdb/history,
export ANDROID_HOME="$XDG_DATA_HOME"/Sdk export ANDROID_HOME="$XDG_DATA_HOME"/Sdk
export FLUTTER_HOME="$XDG_DATA_HOME"/flutter export FLUTTER_HOME="$XDG_DATA_HOME"/flutter
export LEIN_HOME="$XDG_DATA_HOME"/lein export LEIN_HOME="$XDG_DATA_HOME"/lein


Loading…
Cancel
Save