Skip to content

Commit 060af4c

Browse files
committed
Several changes
Modify dotfiles/.bash_profile, dotfiles/.emacs Add bin/tests, dotfiles/.emacs.d/elpa/nhexl-mode-1.5/nhexl-mode-autoloads.el, dotfiles/.emacs.d/elpa/nhexl-mode-1.5/nhexl-mode-pkg.el, dotfiles/.emacs.d/elpa/nhexl-mode-1.5/nhexl-mode.el, dotfiles/.emacs.d/elpa/nhexl-mode-1.5/nhexl-mode.elc, dotfiles/.emacs.d/games/tetris-scores
1 parent 61986c2 commit 060af4c

8 files changed

Lines changed: 1200 additions & 5 deletions

File tree

bin/tests

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -eux
4+
5+
NO_COLOR=1
6+
project=$(basename $(pwd))
7+
8+
ruff check --select I --fix $project test* | sed 's/ --> //g'
9+
ruff format
10+
pyrefly check $project | sed 's/ --> //g'
11+
pytest

dotfiles/.bash_profile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ export PATH
99
# The original version is saved in .bash_profile.pysave
1010
PATH="/Library/Frameworks/Python.framework/Versions/3.13/bin:${PATH}"
1111
export PATH
12+
13+
# Setting PATH for Python 3.14
14+
# The original version is saved in .bash_profile.pysave
15+
PATH="/Library/Frameworks/Python.framework/Versions/3.14/bin:${PATH}"
16+
export PATH

dotfiles/.emacs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,19 @@
5353
;; If you edit it by hand, you could mess it up, so be careful.
5454
;; Your init file should contain only one such instance.
5555
;; If there is more than one, they won't work right.
56+
'(column-number-mode t)
5657
'(compilation-always-kill t)
5758
'(compile-command "NO_COLOR=1 d run-tests")
5859
'(cursor-type 'box)
60+
'(delete-selection-mode t)
5961
'(dirtrack-list '("^.*@.*:\\(.*\\)\\$" 1))
6062
'(etags-table-search-up-depth 10)
6163
'(explicit-shell-file-name "/bin/bash")
6264
'(fill-column 88)
6365
'(global-mark-ring-max 256)
6466
'(global-whitespace-mode nil)
6567
'(grep-command
66-
"egrep -nHIR * --include \\*.py --include \\*.pyi --include \\*.h --include \\*.cpp --include \\*.c --include \\*.cu --include \\*.yaml --include \\*.yml --exclude-dir torch/include --exclude-dir third_party --exclude-dir=build -we ")
68+
"egrep -nHIR * --include \\*.py --include \\*.pyi --include \\*.pyi.in --include \\*.h --include \\*.cpp --include \\*.c --include \\*.cu --include \\*.yaml --include \\*.yml --exclude-dir torch/include --exclude-dir third_party --exclude-dir=build -we ")
6769
'(grep-find-command
6870
'("find . -type f -exec egrep --exclude-dir={build,htmlcov} -nHIR * --include \\*.py -e \\{\\} +"
6971
. 85))
@@ -81,10 +83,10 @@
8183
'(magit-auto-revert-mode nil)
8284
'(mark-ring-max 256)
8385
'(package-selected-packages
84-
'(saveplace git-gutter git-gutter+ yaml-mode template shell-here s realgud python-mode
85-
pylint protobuf-mode markdown-mode magit-filenotify live-preview
86-
google-c-style golden-ratio-scroll-screen electric-operator
87-
dash-functional dash-at-point cython-mode counsel blacken))
86+
'(blacken counsel cython-mode dash-at-point dash-functional electric-operator git-gutter
87+
git-gutter+ golden-ratio-scroll-screen google-c-style live-preview
88+
magit-filenotify markdown-mode nhexl-mode protobuf-mode pylint python-mode
89+
realgud s saveplace shell-here template yaml-mode))
8890
'(py-indent-offset 4)
8991
'(python-indent 4)
9092
'(python-indent-offset 4)
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
;;; nhexl-mode-autoloads.el --- automatically extracted autoloads (do not edit) -*- lexical-binding: t -*-
2+
;; Generated by the `loaddefs-generate' function.
3+
4+
;; This file is part of GNU Emacs.
5+
6+
;;; Code:
7+
8+
(add-to-list 'load-path (or (and load-file-name (directory-file-name (file-name-directory load-file-name))) (car load-path)))
9+
10+
11+
12+
;;; Generated autoloads from nhexl-mode.el
13+
14+
(autoload 'nhexl-mode "nhexl-mode" "\
15+
Minor mode to edit files via hex-dump format
16+
17+
This is a minor mode. If called interactively, toggle the `Nhexl mode'
18+
mode. If the prefix argument is positive, enable the mode, and if it is
19+
zero or negative, disable the mode.
20+
21+
If called from Lisp, toggle the mode if ARG is `toggle'. Enable the
22+
mode if ARG is nil, omitted, or is a positive number. Disable the mode
23+
if ARG is a negative number.
24+
25+
To check whether the minor mode is enabled in the current buffer,
26+
evaluate the variable `nhexl-mode'.
27+
28+
The mode's hook is called both when the mode is enabled and when it is
29+
disabled.
30+
31+
(fn &optional ARG)" t)
32+
(register-definition-prefixes "nhexl-mode" '("nhexl-"))
33+
34+
;;; End of scraped data
35+
36+
(provide 'nhexl-mode-autoloads)
37+
38+
;; Local Variables:
39+
;; version-control: never
40+
;; no-byte-compile: t
41+
;; no-update-autoloads: t
42+
;; no-native-compile: t
43+
;; coding: utf-8-emacs-unix
44+
;; End:
45+
46+
;;; nhexl-mode-autoloads.el ends here
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
;; Generated package description from nhexl-mode.el -*- no-byte-compile: t -*-
2+
(define-package "nhexl-mode" "1.5" "Minor mode to edit files via hex-dump format" '((emacs "24.4") (cl-lib "0.5")) :commit "ec80692dec04e238f2ae3284cfd8f9d05ac1d2a3" :url "https://elpa.gnu.org/packages/nhexl-mode.html" :authors '(("Stefan Monnier" . "monnier@iro.umontreal.ca")) :maintainer '("Stefan Monnier" . "monnier@iro.umontreal.ca") :keywords '("data"))

0 commit comments

Comments
 (0)