Compare commits
No commits in common. "547fc0031e36c27bda61628992bb00ca49947f5c" and "c1450ce0ff82d062135832806ef9a1624f095458" have entirely different histories.
547fc0031e
...
c1450ce0ff
38
README.org
38
README.org
@ -1965,38 +1965,6 @@ git push
|
|||||||
git checkout master
|
git checkout master
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Github quick setup
|
|
||||||
:PROPERTIES:
|
|
||||||
:CUSTOM_ID: sec:github-quick-setup
|
|
||||||
:END:
|
|
||||||
|
|
||||||
#+caption[Make a new repository on the command line]:
|
|
||||||
#+caption: Make a new repository on the command line.
|
|
||||||
#+name: lst:make-new-git-repo
|
|
||||||
#+begin_src shell -n :eval never
|
|
||||||
echo "# org-oxx" >> README.md
|
|
||||||
git init
|
|
||||||
git add README.md
|
|
||||||
git commit -m "first commit"
|
|
||||||
git branch -M main
|
|
||||||
git remote add origin git@github.com:gav451/org-oxx.git
|
|
||||||
git push -u origin main
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
#+caption[Push an old git repository on the command line]:
|
|
||||||
#+caption: Push an old git repository on the command line.
|
|
||||||
#+name: lst:push-old-git-repo
|
|
||||||
#+begin_src shell -n :eval never
|
|
||||||
git remote add origin git@github.com:gav451/org-oxx.git
|
|
||||||
git branch -M main
|
|
||||||
git push -u origin main
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
*** Learn git
|
|
||||||
:PROPERTIES:
|
|
||||||
:CUSTOM_ID: sec:learn-git
|
|
||||||
:END:
|
|
||||||
|
|
||||||
Useful [[https://git-scm.com/book/en/v2][Git]] links are:
|
Useful [[https://git-scm.com/book/en/v2][Git]] links are:
|
||||||
- [[https://sentry.io/answers/abort-a-merge-in-git/][Abort a merge in Git]]
|
- [[https://sentry.io/answers/abort-a-merge-in-git/][Abort a merge in Git]]
|
||||||
- [[https://sentry.io/answers/change-the-uri-for-a-git-remote/][Change the URI for a Git remote]]
|
- [[https://sentry.io/answers/change-the-uri-for-a-git-remote/][Change the URI for a Git remote]]
|
||||||
@ -4801,9 +4769,7 @@ true in case document headlines contain links. The code in listing
|
|||||||
#+caption: Setup ~which-function-mode~.
|
#+caption: Setup ~which-function-mode~.
|
||||||
#+name: lst:setup-which-function-mode
|
#+name: lst:setup-which-function-mode
|
||||||
#+begin_src emacs-lisp -n :results silent
|
#+begin_src emacs-lisp -n :results silent
|
||||||
(with-eval-after-load 'which-func
|
(setopt which-func-modes '(emacs-lisp-mode org-mode pdf-view-mode))
|
||||||
(setopt which-func-modes
|
|
||||||
'(emacs-lisp-mode org-mode pdf-view-mode)))
|
|
||||||
|
|
||||||
;; It looks like `python-mode' does nothing when they it is an element
|
;; It looks like `python-mode' does nothing when they it is an element
|
||||||
;; of `which-func-modes'.
|
;; of `which-func-modes'.
|
||||||
@ -4844,7 +4810,7 @@ Return the document title when point is above the first headline."
|
|||||||
|
|
||||||
(defun which-func-pdf-view-function ()
|
(defun which-func-pdf-view-function ()
|
||||||
"Return the title of the current headline.
|
"Return the title of the current headline.
|
||||||
Return \"Front Matter\" when current page is above the first headline."
|
Return \"Front Matter\" when point is above the first headline."
|
||||||
(interactive) ;; Keep this function interactive for fixing.
|
(interactive) ;; Keep this function interactive for fixing.
|
||||||
(when (eq major-mode 'pdf-view-mode)
|
(when (eq major-mode 'pdf-view-mode)
|
||||||
(let* ((current-page (pdf-view-current-page))
|
(let* ((current-page (pdf-view-current-page))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user