From 1a87f19d3bacfa68ee8df13ce28d7eba9701bcbd Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Wed, 9 Nov 2022 07:02:57 +0000 Subject: [PATCH] feat: seperate keybinds folder --- bookmarks | 10 ++++++++++ init.el | 1 + lisp/editor.el | 12 ++++++------ lisp/keybinds.el | 13 +++++++++++++ lisp/org-mode.el | 8 +++----- org-roam.db | Bin 0 -> 53248 bytes 6 files changed, 33 insertions(+), 11 deletions(-) create mode 100644 bookmarks create mode 100644 lisp/keybinds.el create mode 100644 org-roam.db diff --git a/bookmarks b/bookmarks new file mode 100644 index 0000000..8065327 --- /dev/null +++ b/bookmarks @@ -0,0 +1,10 @@ +;;;; Emacs Bookmark Format Version 1;;;; -*- coding: utf-8-emacs; mode: lisp-data -*- +;;; This format is meant to be slightly human-readable; +;;; nevertheless, you probably don't want to edit it. +;;; -*- End Of Bookmark File Format Version Stamp -*- +(("org-capture-last-stored" + (filename . "~/Org/Roam/homeostasis.org") + (front-context-string . "\n* Structures & ") + (rear-context-string . "al environment.\n") + (position . 233)) +) diff --git a/init.el b/init.el index 26fbdcb..153eb0d 100644 --- a/init.el +++ b/init.el @@ -38,4 +38,5 @@ (require 'interface) (require 'editor) (require 'org-mode) +(require 'keybinds) (require 'performance) diff --git a/lisp/editor.el b/lisp/editor.el index 4f624b7..5291e1b 100644 --- a/lisp/editor.el +++ b/lisp/editor.el @@ -42,15 +42,15 @@ (general-evil-setup t) :init (general-create-definer diancite/leaders - :prefix "SPC")) + :prefix leader-key)) (diancite/leaders :keymaps 'normal - "f" '(:which-key "File") - "n" '(:which-key "Org") - "m" '(:which-key "Magit") - "w" '(:which-key "Evil") - "p" '(:which-key "Projects")) + "f" '(:wk "File") + "n" '(:wk "Org") + "m" '(:wk "Magit") + "w" '(:wk "Evil") + "p" '(:wk "Projects")) (set-face-foreground 'vertical-border (face-background 'default)) diff --git a/lisp/keybinds.el b/lisp/keybinds.el new file mode 100644 index 0000000..81dab5f --- /dev/null +++ b/lisp/keybinds.el @@ -0,0 +1,13 @@ +;;; This file contains keybindings for Dianciemacs + +;; Files +(general-create-definer diancite/file + :prefix leader-key) + +(diancite/file + :keymaps 'normal + "f f" '(find-file :wk "Find File") + "f s" '(save-buffer :wk "Save Buffer")) + +;; Provide file file init.el +(provide 'keybinds) diff --git a/lisp/org-mode.el b/lisp/org-mode.el index cdd8a0b..d79c3ed 100644 --- a/lisp/org-mode.el +++ b/lisp/org-mode.el @@ -4,9 +4,8 @@ ;; org-superstar (use-package org-superstar :config - ;; Change org-mode's heading bullets - (setq org-superstar-headline-bullets-list - '("🞉" "🞈" "🞇" "🞆" "🞅" "🞄"))) + ;; Change org-mode's heading bullets (setq org-superstar-headline-bullets-list + '("🞉" "🞈" "🞇" "🞆" "🞅" "🞄")) ;; Customize org-mode's default functionality (setq org-ellipsis "..." @@ -46,7 +45,6 @@ :custom (org-directory file-truename "Org/") ; Set the folder used by org-mode (org-roam-directory (file-truename "Org/Roam/")) ; Set the folder used by org-roam - (org-roam-databse-connector 'sqlite3) :init (org-roam-db-autosync-mode 1)) ; Automatically sync nodes @@ -63,7 +61,7 @@ (diancite/org :keymaps 'normal "n r" '(org-roam-node-find :wk "Find Nodes") - "n a" '(org-table-align :wk "Align Table")) + "n s" '(org-roam-db-sync :wk "Sync Nodes")) ;; Provide this file to init.el (provide 'org-mode) diff --git a/org-roam.db b/org-roam.db new file mode 100644 index 0000000000000000000000000000000000000000..64b8622b9e3983084e674a563e53d5372b9905a3 GIT binary patch literal 53248 zcmeI*Z%^As90zbaw1j^l)g+V$dC-%kwn+uWPGTHanlu_ri%LTYR9YTX$gwZQYKWQb zw1Wqe!XE5Z>=jgf3wsCE_Gl0Gd~ade!`)p%Vz;G=R!th^Ysrr9d^!K_bLXJ5A?)pL zdl4mVKRB`@QkHH=vMhZ=h$KlTEkl3x5!p~!}^xQkCL6bNRz^_I4M4wkJS{=_NXSlzmTXYew5e5 z)3KVK&Q0g;= z0$*nnk@K8!d&j}Ee6mau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