elisp | clojure | python | |
---|---|---|---|
generation | number-sequence | range | range |
vector | vector | ⁅⁆ | |
make-vector make-list make-string | |||
length | [[id:ced27672-063f-4205-8add |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defvar lawlist-month) | |
(defvar lawlist-year nil) | |
(defun lawlist-org-agenda-view-mode-dispatch () | |
"Select the month in agenda view." | |
(interactive) | |
(message "View: [1-9] [o]CT [n]OV [d]EC, j(next), k(prev).") | |
(let* ((a (read-char-exclusive)) | |
(year (or lawlist-year | |
(setq lawlist-year |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun extract-argument-positions (str) | |
"Given a single line C/C++ string, return list of arguments in form: | |
\(start-position end-position string\) for each argument" | |
(let ((args (list)) | |
(pos 0)) | |
(while (string-match "\\(?: [^ (\n]+\\)\\(?:,[\n ]\\|)\\|,$\\|;$\\|[ ]+=[ ]+\\)" str pos) | |
(push (list (match-beginning 0) | |
(match-end 0) | |
(substring (match-string-no-properties 0 str) 0 -1)) | |
args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'helm-buffers) | |
(require 'delsel) | |
(add-hook | |
'ido-setup-hook | |
(lambda() | |
(define-key ido-buffer-completion-map "\C-i" 'ido-buffer-helm))) | |
(defun ido-buffer-helm () | |
(interactive) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select repository_name, count(repository_name) as pushes, repository_description, repository_url | |
from [githubarchive:github.timeline] | |
where type="PushEvent" | |
and repository_language="Emacs Lisp" | |
and parse_utc_usec(created_at) >= parse_utc_usec('2014-01-01 00:00:00') | |
group by repository_name, repository_description, repository_url | |
order by pushes desc | |
limit 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;###autoload | |
(defun capitalize-word-toggle () | |
(interactive) | |
(let ((start (car | |
(save-excursion | |
(backward-word) | |
(bounds-of-thing-at-point 'symbol))))) | |
(if start | |
(save-excursion | |
(goto-char start) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
pygments.styles.default | |
~~~~~~~~~~~~~~~~~~~~~~~ | |
The default highlighting style. | |
:copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. | |
:license: BSD, see LICENSE for details. | |
""" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'flycheck) | |
;; From https://github.com/flycheck/flycheck/issues/1974#issuecomment-1343495202 | |
(flycheck-define-checker python-ruff | |
"A Python syntax and style checker using the ruff utility. | |
To override the path to the ruff executable, set | |
`flycheck-python-ruff-executable'. | |
See URL `http://pypi.python.org/pypi/ruff'." | |
:command ("ruff" | |
"--format=text" |