- Задача
- список всех ее параметров
- формулировка свойств, которым должен удовлетворять ответ (решение) задачи
- Индивидуальная задача
- Задача, параметрам которой присвоили конкретные значения
This file contains hidden or 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
;;; Rebind 'GOTO beginning/end of buffer' to "C-M-v" | |
(defun edge-of-buffer () | |
(interactive) | |
(if (and current-prefix-arg (eq current-prefix-arg '-)) | |
(beginning-of-buffer) (end-of-buffer))) | |
(global-set-key (kbd "C-M-v") 'edge-of-buffer) |
This file contains hidden or 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
;; https://www.gnu.org/software/emacs/manual/html_node/emacs/Saving-Emacs-Sessions.html | |
(desktop-save-mode 1) |
This file contains hidden or 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
;;; Display a list of existing buffers in current window | |
(global-set-key (kbd "C-x C-b") 'buffer-menu) | |
;; List buffers in other window using "C-x 4-" prefix | |
(global-set-key (kbd "C-x 4 C-x C-b") 'list-buffers) |
This file contains hidden or 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
;;; Show directories first in Dired | |
(setq dired-listing-switches "-al --group-directories-first") |
This file contains hidden or 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 graphviz-on-buffer () | |
(interactive) | |
(shell-command-on-region (point-min) (point-max) "dot -Txlib")) |
This file contains hidden or 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
;;; Relative line numbers | |
(setq display-line-numbers-type 'relative) | |
(global-display-line-numbers-mode) | |
;; Move toward logical lines when prefix arg (numeric, negative) is presented | |
(defun next-logical-line-if-prefix (&optional arg try-vscroll) | |
(interactive "^p\np") | |
(let ((line-move-visual (if current-prefix-arg nil line-move-visual))) | |
(with-no-warnings | |
(next-line arg try-vscroll)))) |
This file contains hidden or 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
#!/usr/bin/env bb | |
(require '[clojure.java.shell :refer [sh]] | |
'[clojure.java.io :as io] | |
'[clojure.edn :as edn]) | |
(def usage-line | |
"Usage: with-env [arg*] | |
\rExtends environment with variables obtained from 'env.edn' file, |
This file contains hidden or 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
#!/usr/bin/env bb | |
(require '[clojure.java.shell :refer [sh]]) | |
(def usage-line | |
"Usage: keyboard-manager [command*] | |
\rPossible commands: | |
\r * nocaps (n) - use Caps Lock as Ctrl |