Merge branch 'main' of git.sr.ht:~marcuskammer/emacs.d
This commit is contained in:
commit
97841e690b
2 changed files with 7 additions and 6 deletions
|
@ -63,7 +63,7 @@
|
|||
'(ol-bbdb ol-bibtex ol-docview ol-eww ol-gnus ol-info ol-irc ol-mhe ol-rmail org-tempo ol-w3m))
|
||||
'(org-plantuml-jar-path "~/AppData/Local/Programs/plantuml/plantuml.jar")
|
||||
'(package-selected-packages
|
||||
'(helpful eglot xref yaml-mode webpaste web-mode use-package typescript-mode slime rainbow-delimiters racket-mode projectile powershell ox-reveal org-tree-slide olivetti ob-typescript ob-rust ob-http ob-go nov markdown-mode magit go-mode geiser-racket elpy eldoc doom-themes doom-modeline counsel all-the-icons-dired ace-window))
|
||||
'(org-web-tools emojify erc-image slime-company shrface helpful eglot xref yaml-mode webpaste web-mode use-package typescript-mode slime rainbow-delimiters racket-mode projectile powershell ox-reveal org-tree-slide olivetti ob-typescript ob-rust ob-http ob-go nov markdown-mode magit go-mode geiser-racket elpy eldoc doom-themes doom-modeline counsel all-the-icons-dired ace-window))
|
||||
'(pdf-view-midnight-colors '("#b2b2b2" . "#292b2e"))
|
||||
'(plantuml-default-exec-mode 'jar)
|
||||
'(plantuml-jar-path "~/AppData/Local/Programs/plantuml/plantuml.jar")
|
||||
|
|
|
@ -639,7 +639,7 @@ this default behavior. Below is a list of such options:
|
|||
feed_name = item[0].upper()
|
||||
feed_url = item[1]
|
||||
parse_feed = feedparser.parse(req_feed(feed_url))
|
||||
entries = parse_feed.entries[:10]
|
||||
entries = parse_feed.entries[:15]
|
||||
feeds[feed_name] = '\n'.join([entry_str.format(entry.link, entry.title)
|
||||
for entry in entries])
|
||||
|
||||
|
@ -658,22 +658,23 @@ this default behavior. Below is a list of such options:
|
|||
return f"return tabulate({df}, headers={df}.columns, tablefmt='orgtbl')"
|
||||
#+end_src
|
||||
** Contributing to git
|
||||
#+name: git-contributing
|
||||
#+begin_src python :results output drawer :exports results
|
||||
import os
|
||||
from git import Repo
|
||||
|
||||
repo = Repo(os.path.abspath('.'))
|
||||
|
||||
def org_list(l)
|
||||
def org_list(l):
|
||||
return [f"\n- {i}\n" for i in l]
|
||||
|
||||
def unique(l)
|
||||
def unique(l):
|
||||
return sorted(set(l))
|
||||
|
||||
def authors(commits)
|
||||
def authors(commits):
|
||||
return [f"{i.author.name} <{i.author.email}>" for i in commits]
|
||||
|
||||
def commits(repo)
|
||||
def commits(repo):
|
||||
return list(repo.iter_commits("master"))
|
||||
|
||||
print(*org_list(unique(authors(commits(repo)))))
|
||||
|
|
Loading…
Add table
Reference in a new issue