From e7f262d8b009915ad805b7a7435f962a7af2f46b Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Mon, 25 Sep 2023 08:24:12 -0400 Subject: Fix for CPP styling and adding a book note to org --- lisp/cpp.el | 9 ++++----- lisp/org-custom.el | 4 ++++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/lisp/cpp.el b/lisp/cpp.el index 264c059..6dad38b 100644 --- a/lisp/cpp.el +++ b/lisp/cpp.el @@ -8,15 +8,14 @@ (setq tab-stop-list '(4 8 12 16 20 24 28 32 36 40 44 48 52 56 60)) (setq tab-width 4) + (c-set-offset 'brace-list-open 0) + (c-set-offset 'substatement-open 0) + (c-set-offset 'arglist-intro '+) + (c-set-offset 'arglist-cont-non-empty '+) ) (add-hook 'c-mode-common-hook 'setup-c) -(c-set-offset 'brace-list-open 0) -(c-set-offset 'substatement-open 0) -(c-set-offset 'arglist-intro '+) -(c-set-offset 'arglist-cont-non-empty '+) - (defun create-cpp-class() "Create a cpp class." (interactive "Enter the name of the class: ") diff --git a/lisp/org-custom.el b/lisp/org-custom.el index 2125dc3..3353171 100644 --- a/lisp/org-custom.el +++ b/lisp/org-custom.el @@ -86,6 +86,10 @@ ("i" "issue" plain "\n\n* Links 🔗\n- *Ticket*: \n- *JIRA*: \n- *Pull Request*: \n\n* Goals ⚽\n\n* TODOs 🔏\n\n* Observations 🔭 \n\n* Code structure 🏠\n\n* Possible Solutions 🤔\n\n* Resources 🔧\n\n" :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title} 🎫\n #+filetags: :issues:ticket:project:canonical\n") + :unnarrowed t) + ("b" "book" plain + "\n\n* Overview \n " + :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title} 📚\n #+filetags: :books\n") :unnarrowed t))) (org-roam-setup) ) -- cgit v1.2.1