Browse Source

Removed the ability to view in emacs

Samuel W. Flint 7 years ago
parent
commit
8d334116e5
2 changed files with 26 additions and 23 deletions
  1. 2 23
      library.org
  2. 24 0
      library.org_archive

+ 2 - 23
library.org

@@ -259,20 +259,6 @@ This handles git as needed, by first checking to see if the first argument is ~i
   }
 #+END_SRC
 
-* WORKING View the File in Emacs with Rec Mode
-:PROPERTIES:
-:CREATED:  <2016-04-13 Wed 20:17>
-:ID:       adfb988b-508b-4b3e-91a7-fd549ef3779e
-:END:
-
-#+Caption: View in Emacs
-#+Name: view-in-emacs
-#+BEGIN_SRC sh
-  function view-in-emacs {
-      emacsclient --alternate-editor="" -n ${LIBRARYFILE}
-  }
-#+END_SRC
-
 * WORKING Handle Reporting
 :PROPERTIES:
 :CREATED:  <2016-04-13 Wed 20:18>
@@ -410,18 +396,17 @@ This handles git as needed, by first checking to see if the first argument is ~i
 #+Name: help-message
 #+BEGIN_SRC sh
   if [[ $# -eq 0 ]] ; then
-      echo "library [ help | query | add | emacs | git | bulk-add | report | edit | loan | do-return | init ]"
+      echo "library [ help | query | add | git | bulk-add | report | edit | loan | do-return | init ]"
       exit
   fi
 
   function display-help {
       cat <<EOF
-  library [ help | query | add | emacs | git | bulk-add | report | edit | loan | do-return | init ]
+  library [ help | query | add | git | bulk-add | report | edit | loan | do-return | init ]
 
   help:       Display this help message.
   query:      Query Library Database.
   add:        Add a singular book record.
-  emacs:      View records in emacs.
   git:        Run a git command.
   bulk-add:   Add a specified number of records.
   report:     Run a report.
@@ -470,10 +455,6 @@ This handles git as needed, by first checking to see if the first argument is ~i
           do-report $@
           exit
           ;;
-      emacs)
-          view-in-emacs
-          exit
-          ;;
       edit)
           do-edit $@
           exit
@@ -528,8 +509,6 @@ Finally, this is what puts the application together.  Placing each function in i
 
   <<initialize-database>>
 
-  <<view-in-emacs>>
-
   <<loan>>
 
   <<process-commands>>

+ 24 - 0
library.org_archive

@@ -0,0 +1,24 @@
+#    -*- mode: org -*-
+
+
+Archived entries from file /home/swflint/org/library.org
+
+
+* WORKING View the File in Emacs with Rec Mode
+:PROPERTIES:
+:CREATED:  <2016-04-13 Wed 20:17>
+:ID:       adfb988b-508b-4b3e-91a7-fd549ef3779e
+:ARCHIVE_TIME: 2016-10-26 Wed 19:23
+:ARCHIVE_FILE: ~/org/library.org
+:ARCHIVE_CATEGORY: library
+:ARCHIVE_TODO: WORKING
+:END:
+
+#+Caption: View in Emacs
+#+Name: view-in-emacs
+#+BEGIN_SRC sh
+  function view-in-emacs {
+      emacsclient --alternate-editor="" -n ${LIBRARYFILE}
+  }
+#+END_SRC
+