diff options
| author | 2026-02-11 04:35:07 +0000 | |
|---|---|---|
| committer | 2026-02-11 04:47:46 +0000 | |
| commit | 0c2af7aac72c74fb2cad8f9e57ccce1e728835e0 (patch) | |
| tree | e93513d5f53b6e94f9e643505069c1f44fd179dc /src/sk/articles/gnu+linux-and-emacs-introduction/index.org.po | |
| parent | add .gitignore (diff) | |
| download | michalec-dev-0c2af7aac72c74fb2cad8f9e57ccce1e728835e0.tar.gz | |
add initial sources
Diffstat (limited to 'src/sk/articles/gnu+linux-and-emacs-introduction/index.org.po')
| -rw-r--r-- | src/sk/articles/gnu+linux-and-emacs-introduction/index.org.po | 1381 |
1 files changed, 1381 insertions, 0 deletions
diff --git a/src/sk/articles/gnu+linux-and-emacs-introduction/index.org.po b/src/sk/articles/gnu+linux-and-emacs-introduction/index.org.po new file mode 100644 index 0000000..3684c8d --- /dev/null +++ b/src/sk/articles/gnu+linux-and-emacs-introduction/index.org.po | |||
| @@ -0,0 +1,1381 @@ | |||
| 1 | # Slovak translations for Martin\'s personal website package | ||
| 2 | # Copyright (C) 2024 Martin | ||
| 3 | # This file is distributed under the same license as the Martin\'s personal website package. | ||
| 4 | # Automatically generated, 2024. | ||
| 5 | # | ||
| 6 | msgid "" | ||
| 7 | msgstr "" | ||
| 8 | "Project-Id-Version: Martin\\'s personal website master\n" | ||
| 9 | "Report-Msgid-Bugs-To: martin@michalec.dev\n" | ||
| 10 | "POT-Creation-Date: 2024-10-30 20:02+0300\n" | ||
| 11 | "PO-Revision-Date: 2024-10-24 06:12+0300\n" | ||
| 12 | "Last-Translator: Automatically generated\n" | ||
| 13 | "Language-Team: none\n" | ||
| 14 | "Language: sk\n" | ||
| 15 | "MIME-Version: 1.0\n" | ||
| 16 | "Content-Type: text/plain; charset=UTF-8\n" | ||
| 17 | "Content-Transfer-Encoding: 8bit\n" | ||
| 18 | "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" | ||
| 19 | |||
| 20 | #. type: Plain text | ||
| 21 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:3 | ||
| 22 | #, no-wrap | ||
| 23 | msgid "" | ||
| 24 | "#+title: GNU/Linux and GNU Emacs Introduction\n" | ||
| 25 | "#+keywords: beginner gnu linux emacs\n" | ||
| 26 | msgstr "" | ||
| 27 | |||
| 28 | #. type: Plain text | ||
| 29 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:8 | ||
| 30 | #, no-wrap | ||
| 31 | msgid "" | ||
| 32 | "* Installing Debian\n" | ||
| 33 | "** Preparations\n" | ||
| 34 | "*** Getting debian\n" | ||
| 35 | "Download Debian [[https://www.debian.org/][installer image]]\n" | ||
| 36 | msgstr "" | ||
| 37 | |||
| 38 | #. type: Plain text | ||
| 39 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:12 | ||
| 40 | #, no-wrap | ||
| 41 | msgid "" | ||
| 42 | "*** Creating installation medium\n" | ||
| 43 | "On =M$= Windows, use a tool like [[https://rufus.ie/en/][Rufus]] to create a bootable USB flash\n" | ||
| 44 | "drive with the downloaded =.iso= file\n" | ||
| 45 | msgstr "" | ||
| 46 | |||
| 47 | #. type: Plain text | ||
| 48 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:15 | ||
| 49 | #, no-wrap | ||
| 50 | msgid "" | ||
| 51 | "*** Allocating disk space\n" | ||
| 52 | "Either get an empty disk or shrink on of your data partitions (toms) to get a continuous region of free space which is at least around 100GB.\n" | ||
| 53 | msgstr "" | ||
| 54 | |||
| 55 | #. type: Plain text | ||
| 56 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:19 | ||
| 57 | #, no-wrap | ||
| 58 | msgid "" | ||
| 59 | "** Installation process\n" | ||
| 60 | "If installing on a laptop, make sure that it's fully charged and keep\n" | ||
| 61 | "the charger plugged in.\n" | ||
| 62 | msgstr "" | ||
| 63 | |||
| 64 | #. type: Plain text | ||
| 65 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:22 | ||
| 66 | #, no-wrap | ||
| 67 | msgid "" | ||
| 68 | "*** Booting from the installation medium\n" | ||
| 69 | "NOTE: You might have to enable booting from USB in BIOS.\n" | ||
| 70 | msgstr "" | ||
| 71 | |||
| 72 | #. type: Plain text | ||
| 73 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:24 | ||
| 74 | #, no-wrap | ||
| 75 | msgid "Select the USB from boot menu or change boot order.\n" | ||
| 76 | msgstr "" | ||
| 77 | |||
| 78 | #. type: Plain text | ||
| 79 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:27 | ||
| 80 | #, no-wrap | ||
| 81 | msgid "" | ||
| 82 | "*** The Debian installer\n" | ||
| 83 | "Select the =install= option (not the =Graphical install=) in the GRUB bootloader.\n" | ||
| 84 | msgstr "" | ||
| 85 | |||
| 86 | #. type: Plain text | ||
| 87 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:29 | ||
| 88 | #, no-wrap | ||
| 89 | msgid "To navigate the menus, use arrow keys and TAB, to toggle check boxes use spacebar and to press button use the enter key.\n" | ||
| 90 | msgstr "" | ||
| 91 | |||
| 92 | #. type: Plain text | ||
| 93 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:47 | ||
| 94 | #, no-wrap | ||
| 95 | msgid "" | ||
| 96 | "Simple guide:\n" | ||
| 97 | "1. Select region\n" | ||
| 98 | "2. Select localization (US)\n" | ||
| 99 | "3. Select keyboard layout (most likely US/ISO)\n" | ||
| 100 | "4. Select connected if you have Ethernet connection or wireless if you\n" | ||
| 101 | " want to connect to wifi.\n" | ||
| 102 | "5. Choose hostname.\n" | ||
| 103 | "6. Skip domain name.\n" | ||
| 104 | "7. Skip proxy.\n" | ||
| 105 | "8. Select mirror in your region.\n" | ||
| 106 | "9. Set root password.\n" | ||
| 107 | "10. Set user's full name, username and password.\n" | ||
| 108 | "11. Deselect all software packages except base.\n" | ||
| 109 | "12. To dual boot with Windows select guided partitioning (free space).\n" | ||
| 110 | "13. Select =/home= folder on a separate partition.\n" | ||
| 111 | "14. Start the installation.\n" | ||
| 112 | "15. Reboot and check that you can boot everything.\n" | ||
| 113 | msgstr "" | ||
| 114 | |||
| 115 | #. type: Plain text | ||
| 116 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:59 | ||
| 117 | #, no-wrap | ||
| 118 | msgid "" | ||
| 119 | "* Setting up GNU/Linux\n" | ||
| 120 | "** User setup\n" | ||
| 121 | "1. Login as root\n" | ||
| 122 | "1. Edit =/etc/apt/sources= and add =non-free contrib testing unstable=\n" | ||
| 123 | "2. ~apt udpate~\n" | ||
| 124 | "3. ~apt upgrade~\n" | ||
| 125 | "4. ~apt install sudo~\n" | ||
| 126 | "5. ~visudo~ (%wheel ALL=(ALL) NOPASSWD: ALL)\n" | ||
| 127 | "6. ~groupadd wheel~\n" | ||
| 128 | "7. ~usermod -aG wheel YOUR_USERNAME~\n" | ||
| 129 | "8. ~exit~\n" | ||
| 130 | msgstr "" | ||
| 131 | |||
| 132 | #. type: Plain text | ||
| 133 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:70 | ||
| 134 | #, no-wrap | ||
| 135 | msgid "" | ||
| 136 | "** Environment setup\n" | ||
| 137 | "*** Folder setup\n" | ||
| 138 | "#+begin_src sh\n" | ||
| 139 | "cd\n" | ||
| 140 | "rmdir Downloads Desktop ...\n" | ||
| 141 | "mkdir downloads documents multimedia\n" | ||
| 142 | "cd multimedia\n" | ||
| 143 | "mkdir screenshots\n" | ||
| 144 | "mkdir screencasts\n" | ||
| 145 | "#+end_src\n" | ||
| 146 | msgstr "" | ||
| 147 | |||
| 148 | #. type: Plain text | ||
| 149 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:73 | ||
| 150 | #, no-wrap | ||
| 151 | msgid "" | ||
| 152 | "*** Emacs setup\n" | ||
| 153 | "~sudo apt install emacs git vterm-module libtd~\n" | ||
| 154 | msgstr "" | ||
| 155 | |||
| 156 | #. type: Plain text | ||
| 157 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:75 | ||
| 158 | #, no-wrap | ||
| 159 | msgid "Delete =~/.emacs.d=\n" | ||
| 160 | msgstr "" | ||
| 161 | |||
| 162 | #. type: Plain text | ||
| 163 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:77 | ||
| 164 | #, no-wrap | ||
| 165 | msgid "Edit =~/.config/emacs/init.el=\n" | ||
| 166 | msgstr "" | ||
| 167 | |||
| 168 | #. type: Plain text | ||
| 169 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:83 | ||
| 170 | #, no-wrap | ||
| 171 | msgid "" | ||
| 172 | "#+name: emacs-server\n" | ||
| 173 | "#+header: :tangle emacs/init.el\n" | ||
| 174 | "#+begin_src emacs-lisp\n" | ||
| 175 | "(server-start)\n" | ||
| 176 | "#+end_src\n" | ||
| 177 | msgstr "" | ||
| 178 | |||
| 179 | #. type: Plain text | ||
| 180 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:100 | ||
| 181 | #, no-wrap | ||
| 182 | msgid "" | ||
| 183 | "#+name: emacs-straight\n" | ||
| 184 | "#+header: :tangle emacs/init.el\n" | ||
| 185 | "#+begin_src emacs-lisp\n" | ||
| 186 | "(defvar bootstrap-version)\n" | ||
| 187 | "(let ((bootstrap-file\n" | ||
| 188 | " (expand-file-name\n" | ||
| 189 | " \"straight/repos/straight.el/bootstrap.el\" user-emacs-directory))\n" | ||
| 190 | " (bootstrap-version 6))\n" | ||
| 191 | " (unless (file-exists-p bootstrap-file)\n" | ||
| 192 | " (with-current-buffer\n" | ||
| 193 | " (url-retrieve-synchronously\n" | ||
| 194 | " \"https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el\"\n" | ||
| 195 | " 'silent 'inhibit-cookies)\n" | ||
| 196 | " (goto-char (point-max))\n" | ||
| 197 | " (eval-print-last-sexp)))\n" | ||
| 198 | " (load bootstrap-file nil 'nomessage))\n" | ||
| 199 | msgstr "" | ||
| 200 | |||
| 201 | #. type: Plain text | ||
| 202 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:105 | ||
| 203 | #, no-wrap | ||
| 204 | msgid "" | ||
| 205 | "(straight-use-package 'use-package)\n" | ||
| 206 | "(setq straight-use-package-by-default t\n" | ||
| 207 | " use-package-always-ensure t)\n" | ||
| 208 | "#+end_src\n" | ||
| 209 | msgstr "" | ||
| 210 | |||
| 211 | #. type: Plain text | ||
| 212 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:115 | ||
| 213 | #, no-wrap | ||
| 214 | msgid "" | ||
| 215 | "#+name: emacs-coding\n" | ||
| 216 | "#+header: :tangle emacs/init.el\n" | ||
| 217 | "#+begin_src emacs-lisp\n" | ||
| 218 | "(prefer-coding-system 'utf-8)\n" | ||
| 219 | "(set-language-environment \"UTF-8\")\n" | ||
| 220 | "(set-default-coding-systems 'utf-8)\n" | ||
| 221 | "(set-terminal-coding-system 'utf-8)\n" | ||
| 222 | "(setq-default buffer-file-coding-system 'utf-8)\n" | ||
| 223 | "#+end_src\n" | ||
| 224 | msgstr "" | ||
| 225 | |||
| 226 | #. type: Plain text | ||
| 227 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:123 | ||
| 228 | #, no-wrap | ||
| 229 | msgid "" | ||
| 230 | "#+name: emacs-clean-look\n" | ||
| 231 | "#+header: :tangle emacs/init.el\n" | ||
| 232 | "#+begin_src emacs-lisp\n" | ||
| 233 | "(menu-bar-mode -1)\n" | ||
| 234 | "(tool-bar-mode -1)\n" | ||
| 235 | "(scroll-bar-mode -1)\n" | ||
| 236 | "#+end_src\n" | ||
| 237 | msgstr "" | ||
| 238 | |||
| 239 | #. type: Plain text | ||
| 240 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:138 | ||
| 241 | #, no-wrap | ||
| 242 | msgid "" | ||
| 243 | "#+name: emacs-misc\n" | ||
| 244 | "#+header: :tangle emacs/init.el\n" | ||
| 245 | "#+begin_src emacs-lisp\n" | ||
| 246 | "(setq kill-ring-max 10000)\n" | ||
| 247 | "(repeat-mode 1)\n" | ||
| 248 | "(auto-insert-mode 1)\n" | ||
| 249 | "(global-hl-line-mode 1)\n" | ||
| 250 | "(setq display-time-24hr-format t)\n" | ||
| 251 | "(setq default-input-method \"russian-computer\")\n" | ||
| 252 | "(load-theme 'modus-vivendi t)\n" | ||
| 253 | "(fset 'yes-or-no-p 'y-or-n-p)\n" | ||
| 254 | "(set-face-attribute 'default nil :font \"Iosevka\" :height 180)\n" | ||
| 255 | "(global-subword-mode)\n" | ||
| 256 | "#+end_src\n" | ||
| 257 | msgstr "" | ||
| 258 | |||
| 259 | #. type: Plain text | ||
| 260 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:148 | ||
| 261 | #, no-wrap | ||
| 262 | msgid "" | ||
| 263 | "#+name: emacs-compilation\n" | ||
| 264 | "#+header: :tangle emacs/init.el\n" | ||
| 265 | "#+begin_src emacs-lisp\n" | ||
| 266 | "(require 'ansi-color)\n" | ||
| 267 | "(add-hook 'compilation-filter-hook 'ansi-color-compilation-filter)\n" | ||
| 268 | "(add-hook 'compilation-mode-hook 'toggle-truncate-lines)\n" | ||
| 269 | "(define-key global-map (kbd \"C-<f5>\") 'compile)\n" | ||
| 270 | "(define-key global-map (kbd \"<f5>\") 'recompile)\n" | ||
| 271 | "#+end_src\n" | ||
| 272 | msgstr "" | ||
| 273 | |||
| 274 | #. type: Plain text | ||
| 275 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:155 | ||
| 276 | #, no-wrap | ||
| 277 | msgid "" | ||
| 278 | "#+name: emacs-trash\n" | ||
| 279 | "#+header: :tangle emacs/init.el\n" | ||
| 280 | "#+begin_src emacs-lisp\n" | ||
| 281 | "(use-package trashed)\n" | ||
| 282 | "(setq delete-by-moving-to-trash t)\n" | ||
| 283 | "#+end_src\n" | ||
| 284 | msgstr "" | ||
| 285 | |||
| 286 | #. type: Plain text | ||
| 287 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:163 | ||
| 288 | #, no-wrap | ||
| 289 | msgid "" | ||
| 290 | "#+name: emacs-undo-tree\n" | ||
| 291 | "#+header: :tangle emacs/init.el\n" | ||
| 292 | "#+begin_src emacs-lisp\n" | ||
| 293 | "(use-package undo-tree\n" | ||
| 294 | " :config\n" | ||
| 295 | " (global-undo-tree-mode))\n" | ||
| 296 | "#+end_src\n" | ||
| 297 | msgstr "" | ||
| 298 | |||
| 299 | #. type: Plain text | ||
| 300 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:171 | ||
| 301 | #, no-wrap | ||
| 302 | msgid "" | ||
| 303 | "#+name: emacs-page-break-lines\n" | ||
| 304 | "#+header: :tangle emacs/init.el\n" | ||
| 305 | "#+begin_src emacs-lisp\n" | ||
| 306 | "(use-package page-break-lines\n" | ||
| 307 | " :config\n" | ||
| 308 | " (global-page-break-lines-mode))\n" | ||
| 309 | "#+end_src\n" | ||
| 310 | msgstr "" | ||
| 311 | |||
| 312 | #. type: Plain text | ||
| 313 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:188 | ||
| 314 | #, no-wrap | ||
| 315 | msgid "" | ||
| 316 | "#+name: emacs-pdf-tools\n" | ||
| 317 | "#+header: :tangle emacs/init.el\n" | ||
| 318 | "#+begin_src emacs-lisp\n" | ||
| 319 | "(use-package pdf-tools\n" | ||
| 320 | " :demand t\n" | ||
| 321 | " :hook (pdf-view-mode . pdf-view-themed-minor-mode)\n" | ||
| 322 | " :config\n" | ||
| 323 | " ;; Initialize the package\n" | ||
| 324 | " (pdf-tools-install)\n" | ||
| 325 | " ;; Associate pdf-view-mode with PDF files\n" | ||
| 326 | " (add-to-list 'auto-mode-alist '(\"\\\\.pdf\\\\'\" . pdf-view-mode))\n" | ||
| 327 | " ;; Enable seamless scrolling between pages\n" | ||
| 328 | " (setq pdf-view-continuous-scroll-mode t)\n" | ||
| 329 | " ;; Use normal Emacs keybindings for scrolling\n" | ||
| 330 | " (setq pdf-view-continuous-scroll-keystrokes nil))\n" | ||
| 331 | "#+end_src\n" | ||
| 332 | msgstr "" | ||
| 333 | |||
| 334 | #. type: Plain text | ||
| 335 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:194 | ||
| 336 | #, no-wrap | ||
| 337 | msgid "" | ||
| 338 | "#+name: emacs-eglot\n" | ||
| 339 | "#+header: :tangle emacs/init.el\n" | ||
| 340 | "#+begin_src emacs-lisp\n" | ||
| 341 | "(use-package eglot)\n" | ||
| 342 | "#+end_src\n" | ||
| 343 | msgstr "" | ||
| 344 | |||
| 345 | #. type: Plain text | ||
| 346 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:200 | ||
| 347 | #, no-wrap | ||
| 348 | msgid "" | ||
| 349 | "#+name: emacs-project\n" | ||
| 350 | "#+header: :tangle emacs/init.el\n" | ||
| 351 | "#+begin_src emacs-lisp\n" | ||
| 352 | "(use-package project)\n" | ||
| 353 | "#+end_src\n" | ||
| 354 | msgstr "" | ||
| 355 | |||
| 356 | #. type: Plain text | ||
| 357 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:207 | ||
| 358 | #, no-wrap | ||
| 359 | msgid "" | ||
| 360 | "#+name: emacs-terminals\n" | ||
| 361 | "#+header: :tangle emacs/init.el\n" | ||
| 362 | "#+begin_src emacs-lisp\n" | ||
| 363 | "(use-package vterm)\n" | ||
| 364 | "(use-package eat)\n" | ||
| 365 | "#+end_src\n" | ||
| 366 | msgstr "" | ||
| 367 | |||
| 368 | #. type: Plain text | ||
| 369 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:215 | ||
| 370 | #, no-wrap | ||
| 371 | msgid "" | ||
| 372 | "#+name: emacs-telega\n" | ||
| 373 | "#+header: :tangle emacs/init.el\n" | ||
| 374 | "#+begin_src emacs-lisp\n" | ||
| 375 | "(use-package telega\n" | ||
| 376 | " :custom\n" | ||
| 377 | " (telega-server-libs-prefix \"/usr\"))\n" | ||
| 378 | "#+end_src\n" | ||
| 379 | msgstr "" | ||
| 380 | |||
| 381 | #. type: Plain text | ||
| 382 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:221 | ||
| 383 | #, no-wrap | ||
| 384 | msgid "" | ||
| 385 | "#+name: emacs-emms\n" | ||
| 386 | "#+header: :tangle emacs/init.el\n" | ||
| 387 | "#+begin_src emacs-lisp\n" | ||
| 388 | "(use-package emms)\n" | ||
| 389 | "#+end_src\n" | ||
| 390 | msgstr "" | ||
| 391 | |||
| 392 | #. type: Plain text | ||
| 393 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:229 | ||
| 394 | #, no-wrap | ||
| 395 | msgid "" | ||
| 396 | "#+name: emacs-multitran\n" | ||
| 397 | "#+header: :tangle emacs/init.el\n" | ||
| 398 | "#+begin_src emacs-lisp\n" | ||
| 399 | "(use-package multitran\n" | ||
| 400 | " :bind\n" | ||
| 401 | " ((\"s-t\" . multitran-at-pos)))\n" | ||
| 402 | "#+end_src\n" | ||
| 403 | msgstr "" | ||
| 404 | |||
| 405 | #. type: Plain text | ||
| 406 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:237 | ||
| 407 | #, no-wrap | ||
| 408 | msgid "" | ||
| 409 | "#+name: emacs-savehist\n" | ||
| 410 | "#+header: :tangle emacs/init.el\n" | ||
| 411 | "#+begin_src emacs-lisp\n" | ||
| 412 | "(use-package savehist\n" | ||
| 413 | " :config\n" | ||
| 414 | " (savehist-mode))\n" | ||
| 415 | "#+end_src\n" | ||
| 416 | msgstr "" | ||
| 417 | |||
| 418 | #. type: Plain text | ||
| 419 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:243 | ||
| 420 | #, no-wrap | ||
| 421 | msgid "" | ||
| 422 | "#+name: emacs-lorem-ipsum\n" | ||
| 423 | "#+header: :tangle emacs/init.el\n" | ||
| 424 | "#+begin_src emacs-lisp\n" | ||
| 425 | "(use-package lorem-ipsum)\n" | ||
| 426 | "#+end_src\n" | ||
| 427 | msgstr "" | ||
| 428 | |||
| 429 | #. type: Plain text | ||
| 430 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:251 | ||
| 431 | #, no-wrap | ||
| 432 | msgid "" | ||
| 433 | "#+name: emacs-smartparens\n" | ||
| 434 | "#+header: :tangle emacs/init.el\n" | ||
| 435 | "#+begin_src emacs-lisp\n" | ||
| 436 | "(use-package smartparens\n" | ||
| 437 | " :init\n" | ||
| 438 | " (smartparens-global-mode t))\n" | ||
| 439 | "#+end_src\n" | ||
| 440 | msgstr "" | ||
| 441 | |||
| 442 | #. type: Plain text | ||
| 443 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:262 | ||
| 444 | #, no-wrap | ||
| 445 | msgid "" | ||
| 446 | "#+name: emacs-completion\n" | ||
| 447 | "#+header: :tangle emacs/init.el\n" | ||
| 448 | "#+begin_src emacs-lisp\n" | ||
| 449 | "(use-package vertico\n" | ||
| 450 | " :init\n" | ||
| 451 | " (vertico-mode)\n" | ||
| 452 | " ;; (setq vertico-scroll-margin 0)\n" | ||
| 453 | " ;; (setq vertico-count 20)\n" | ||
| 454 | " ;; (setq vertico-resize t)\n" | ||
| 455 | " (setq vertico-cycle t))\n" | ||
| 456 | msgstr "" | ||
| 457 | |||
| 458 | #. type: Plain text | ||
| 459 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:271 | ||
| 460 | #, no-wrap | ||
| 461 | msgid "" | ||
| 462 | "(use-package orderless\n" | ||
| 463 | " :init\n" | ||
| 464 | " ;; (setq orderless-style-dispatchers '(+orderless-consult-dispatch\n" | ||
| 465 | " ;; orderless-affix-dispatch)\n" | ||
| 466 | " orderless-component-separator #'orderless-escapable-split-on-space)\n" | ||
| 467 | "(setq completion-styles '(orderless basic)\n" | ||
| 468 | " completion-category-defaults nil\n" | ||
| 469 | " completion-category-overrides '((file (styles partial-completion)))))\n" | ||
| 470 | msgstr "" | ||
| 471 | |||
| 472 | #. type: Plain text | ||
| 473 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:324 | ||
| 474 | #, no-wrap | ||
| 475 | msgid "" | ||
| 476 | "(use-package consult\n" | ||
| 477 | " :bind (;; C-c bindings in `mode-specific-map'\n" | ||
| 478 | " (\"C-c M-x\" . consult-mode-command)\n" | ||
| 479 | " (\"C-c h\" . consult-history)\n" | ||
| 480 | " (\"C-c k\" . consult-kmacro)\n" | ||
| 481 | " (\"C-c m\" . consult-man)\n" | ||
| 482 | " (\"C-c i\" . consult-info)\n" | ||
| 483 | " ([remap Info-search] . consult-info)\n" | ||
| 484 | " ;; C-x bindings in `ctl-x-map'\n" | ||
| 485 | " (\"C-x M-:\" . consult-complex-command) ;; orig. repeat-complex-command\n" | ||
| 486 | " (\"C-x b\" . consult-buffer) ;; orig. switch-to-buffer\n" | ||
| 487 | " (\"C-x 4 b\" . consult-buffer-other-window) ;; orig. switch-to-buffer-other-window\n" | ||
| 488 | " (\"C-x 5 b\" . consult-buffer-other-frame) ;; orig. switch-to-buffer-other-frame\n" | ||
| 489 | " (\"C-x r b\" . consult-bookmark) ;; orig. bookmark-jump\n" | ||
| 490 | " (\"C-x p b\" . consult-project-buffer) ;; orig. project-switch-to-buffer\n" | ||
| 491 | " ;; Custom M-# bindings for fast register access\n" | ||
| 492 | " (\"M-#\" . consult-register-load)\n" | ||
| 493 | " (\"M-'\" . consult-register-store) ;; orig. abbrev-prefix-mark (unrelated)\n" | ||
| 494 | " (\"C-M-#\" . consult-register)\n" | ||
| 495 | " ;; Other custom bindings\n" | ||
| 496 | " (\"M-y\" . consult-yank-pop) ;; orig. yank-pop\n" | ||
| 497 | " ;; M-g bindings in `goto-map'\n" | ||
| 498 | " (\"M-g e\" . consult-compile-error)\n" | ||
| 499 | " (\"M-g f\" . consult-flymake) ;; Alternative: consult-flycheck\n" | ||
| 500 | " (\"M-g g\" . consult-goto-line) ;; orig. goto-line\n" | ||
| 501 | " (\"M-g M-g\" . consult-goto-line) ;; orig. goto-line\n" | ||
| 502 | " (\"M-g o\" . consult-outline) ;; Alternative: consult-org-heading\n" | ||
| 503 | " (\"M-g m\" . consult-mark)\n" | ||
| 504 | " (\"M-g k\" . consult-global-mark)\n" | ||
| 505 | " (\"M-g i\" . consult-imenu)\n" | ||
| 506 | " (\"M-g I\" . consult-imenu-multi)\n" | ||
| 507 | " ;; M-s bindings in `search-map'\n" | ||
| 508 | " (\"M-s d\" . consult-find) ;; Alternative: consult-fd\n" | ||
| 509 | " (\"M-s D\" . consult-locate)\n" | ||
| 510 | " (\"M-s g\" . consult-grep)\n" | ||
| 511 | " (\"M-s G\" . consult-git-grep)\n" | ||
| 512 | " (\"M-s r\" . consult-ripgrep)\n" | ||
| 513 | " (\"M-s l\" . consult-line)\n" | ||
| 514 | " (\"M-s L\" . consult-line-multi)\n" | ||
| 515 | " (\"M-s k\" . consult-keep-lines)\n" | ||
| 516 | " (\"M-s u\" . consult-focus-lines)\n" | ||
| 517 | " ;; Isearch integration\n" | ||
| 518 | " (\"M-s e\" . consult-isearch-history)\n" | ||
| 519 | " :map isearch-mode-map\n" | ||
| 520 | " (\"M-e\" . consult-isearch-history) ;; orig. isearch-edit-string\n" | ||
| 521 | " (\"M-s e\" . consult-isearch-history) ;; orig. isearch-edit-string\n" | ||
| 522 | " (\"M-s l\" . consult-line) ;; needed by consult-line to detect isearch\n" | ||
| 523 | " (\"M-s L\" . consult-line-multi) ;; needed by consult-line to detect isearch\n" | ||
| 524 | " ;; Minibuffer history\n" | ||
| 525 | " :map minibuffer-local-map\n" | ||
| 526 | " (\"M-s\" . consult-history) ;; orig. next-matching-history-element\n" | ||
| 527 | " (\"M-r\" . consult-history)) ;; orig. previous-matching-history-element\n" | ||
| 528 | msgstr "" | ||
| 529 | |||
| 530 | #. type: Plain text | ||
| 531 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:334 | ||
| 532 | #, no-wrap | ||
| 533 | msgid "" | ||
| 534 | " ;; Enable automatic preview at point in the *Completions* buffer. This is\n" | ||
| 535 | " ;; relevant when you use the default completion UI.\n" | ||
| 536 | " :hook (completion-list-mode . consult-preview-at-point-mode)\n" | ||
| 537 | " :init\n" | ||
| 538 | " ;; Optionally configure the register formatting. This improves the register\n" | ||
| 539 | " ;; preview for `consult-register', `consult-register-load',\n" | ||
| 540 | " ;; `consult-register-store' and the Emacs built-ins.\n" | ||
| 541 | " (setq register-preview-delay 0.5\n" | ||
| 542 | " register-preview-function #'consult-register-format)\n" | ||
| 543 | msgstr "" | ||
| 544 | |||
| 545 | #. type: Plain text | ||
| 546 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:338 | ||
| 547 | #, no-wrap | ||
| 548 | msgid "" | ||
| 549 | " ;; Optionally tweak the register preview window.\n" | ||
| 550 | " ;; This adds thin lines, sorting and hides the mode line of the window.\n" | ||
| 551 | " (advice-add #'register-preview :override #'consult-register-window)\n" | ||
| 552 | msgstr "" | ||
| 553 | |||
| 554 | #. type: Plain text | ||
| 555 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:342 | ||
| 556 | #, no-wrap | ||
| 557 | msgid "" | ||
| 558 | " ;; Use Consult to select xref locations with preview\n" | ||
| 559 | " (setq xref-show-xrefs-function #'consult-xref\n" | ||
| 560 | " xref-show-definitions-function #'consult-xref)\n" | ||
| 561 | msgstr "" | ||
| 562 | |||
| 563 | #. type: Plain text | ||
| 564 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:346 | ||
| 565 | #, no-wrap | ||
| 566 | msgid "" | ||
| 567 | " ;; Configure other variables and modes in the :config section,\n" | ||
| 568 | " ;; after lazily loading the package.\n" | ||
| 569 | " :config\n" | ||
| 570 | msgstr "" | ||
| 571 | |||
| 572 | #. type: Plain text | ||
| 573 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:362 | ||
| 574 | #, no-wrap | ||
| 575 | msgid "" | ||
| 576 | " ;; Optionally configure preview. The default value\n" | ||
| 577 | " ;; is 'any, such that any key triggers the preview.\n" | ||
| 578 | " ;; (setq consult-preview-key 'any)\n" | ||
| 579 | " ;; (setq consult-preview-key \"M-.\")\n" | ||
| 580 | " ;; (setq consult-preview-key '(\"S-<down>\" \"S-<up>\"))\n" | ||
| 581 | " ;; For some commands and buffer sources it is useful to configure the\n" | ||
| 582 | " ;; :preview-key on a per-command basis using the `consult-customize' macro.\n" | ||
| 583 | " (consult-customize\n" | ||
| 584 | " consult-theme :preview-key '(:debounce 0.2 any)\n" | ||
| 585 | " consult-ripgrep consult-git-grep consult-grep\n" | ||
| 586 | " consult-bookmark consult-recent-file consult-xref\n" | ||
| 587 | " consult--source-bookmark consult--source-file-register\n" | ||
| 588 | " consult--source-recent-file consult--source-project-recent-file\n" | ||
| 589 | " ;; :preview-key \"M-.\"\n" | ||
| 590 | " :preview-key '(:debounce 0.4 any))\n" | ||
| 591 | msgstr "" | ||
| 592 | |||
| 593 | #. type: Plain text | ||
| 594 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:366 | ||
| 595 | #, no-wrap | ||
| 596 | msgid "" | ||
| 597 | " ;; Optionally configure the narrowing key.\n" | ||
| 598 | " ;; Both < and C-+ work reasonably well.\n" | ||
| 599 | " (setq consult-narrow-key \"<\") ;; \"C-+\"\n" | ||
| 600 | msgstr "" | ||
| 601 | |||
| 602 | #. type: Plain text | ||
| 603 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:371 | ||
| 604 | #, no-wrap | ||
| 605 | msgid "" | ||
| 606 | " ;; Optionally make narrowing help available in the minibuffer.\n" | ||
| 607 | " ;; You may want to use `embark-prefix-help-command' or which-key instead.\n" | ||
| 608 | " ;; (define-key consult-narrow-map (vconcat consult-narrow-key \"?\") #'consult-narrow-help)\n" | ||
| 609 | " )\n" | ||
| 610 | msgstr "" | ||
| 611 | |||
| 612 | #. type: Plain text | ||
| 613 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:386 | ||
| 614 | #, no-wrap | ||
| 615 | msgid "" | ||
| 616 | "(use-package corfu\n" | ||
| 617 | " :custom\n" | ||
| 618 | " (corfu-cycle t) ;; Enable cycling for `corfu-next/previous'\n" | ||
| 619 | " (corfu-auto t) ;; Enable auto completion\n" | ||
| 620 | " (corfu-separator ?\\s) ;; Orderless field separator\n" | ||
| 621 | " (corfu-quit-at-boundary nil) ;; Never quit at completion boundary\n" | ||
| 622 | " (corfu-quit-no-match nil) ;; Never quit, even if there is no match\n" | ||
| 623 | " (corfu-preview-current nil) ;; Disable current candidate preview\n" | ||
| 624 | " (corfu-preselect 'prompt) ;; Preselect the prompt\n" | ||
| 625 | " (corfu-on-exact-match nil) ;; Configure handling of exact matches\n" | ||
| 626 | " (corfu-scroll-margin 5) ;; Use scroll margin\n" | ||
| 627 | " :init\n" | ||
| 628 | " (global-corfu-mode))\n" | ||
| 629 | "#+end_src\n" | ||
| 630 | msgstr "" | ||
| 631 | |||
| 632 | #. type: Plain text | ||
| 633 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:396 | ||
| 634 | #, no-wrap | ||
| 635 | msgid "" | ||
| 636 | "#+name: emacs-dired\n" | ||
| 637 | "#+header: :tangle emacs/init.el\n" | ||
| 638 | "#+begin_src emacs-lisp\n" | ||
| 639 | "(setq dired-listing-switches \"-alh\"\n" | ||
| 640 | " dired-dwim-target t\n" | ||
| 641 | " dired-recursive-copies 'always\n" | ||
| 642 | " dired-recursive-deletes 'always)\n" | ||
| 643 | "(use-package dired-single)\n" | ||
| 644 | "#+end_src\n" | ||
| 645 | msgstr "" | ||
| 646 | |||
| 647 | #. type: Plain text | ||
| 648 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:412 | ||
| 649 | #, no-wrap | ||
| 650 | msgid "" | ||
| 651 | "#+name: emacs-emacs\n" | ||
| 652 | "#+header: :tangle emacs/init.el\n" | ||
| 653 | "#+begin_src emacs-lisp\n" | ||
| 654 | "(use-package emacs\n" | ||
| 655 | " :init\n" | ||
| 656 | " ;; Add prompt indicator to `completing-read-multiple'.\n" | ||
| 657 | " ;; We display [CRM<separator>], e.g., [CRM,] if the separator is a comma.\n" | ||
| 658 | " (defun crm-indicator (args)\n" | ||
| 659 | " (cons (format \"[CRM%s] %s\"\n" | ||
| 660 | " (replace-regexp-in-string\n" | ||
| 661 | " \"\\\\`\\\\[.*?]\\\\*\\\\|\\\\[.*?]\\\\*\\\\'\" \"\"\n" | ||
| 662 | " crm-separator)\n" | ||
| 663 | " (car args))\n" | ||
| 664 | " (cdr args)))\n" | ||
| 665 | " (advice-add #'completing-read-multiple :filter-args #'crm-indicator)\n" | ||
| 666 | msgstr "" | ||
| 667 | |||
| 668 | #. type: Plain text | ||
| 669 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:417 | ||
| 670 | #, no-wrap | ||
| 671 | msgid "" | ||
| 672 | " ;; Do not allow the cursor in the minibuffer prompt\n" | ||
| 673 | " (setq minibuffer-prompt-properties\n" | ||
| 674 | " '(read-only t cursor-intangible t face minibuffer-prompt))\n" | ||
| 675 | " (add-hook 'minibuffer-setup-hook #'cursor-intangible-mode)\n" | ||
| 676 | msgstr "" | ||
| 677 | |||
| 678 | #. type: Plain text | ||
| 679 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:420 | ||
| 680 | #, no-wrap | ||
| 681 | msgid "" | ||
| 682 | " ;; Enable recursive minibuffers\n" | ||
| 683 | " (setq enable-recursive-minibuffers t))\n" | ||
| 684 | msgstr "" | ||
| 685 | |||
| 686 | #. type: Plain text | ||
| 687 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:430 | ||
| 688 | #, no-wrap | ||
| 689 | msgid "" | ||
| 690 | ";; Save all tempfiles in $TMPDIR/emacs$UID/\n" | ||
| 691 | "(defconst emacs-tmp-dir (expand-file-name (format \"emacs%d\" (user-uid)) temporary-file-directory))\n" | ||
| 692 | "(setq backup-directory-alist\n" | ||
| 693 | " `((\".*\" . ,emacs-tmp-dir)))\n" | ||
| 694 | "(setq auto-save-file-name-transforms\n" | ||
| 695 | " `((\".*\" ,emacs-tmp-dir t)))\n" | ||
| 696 | "(setq auto-save-list-file-prefix\n" | ||
| 697 | " emacs-tmp-dir)\n" | ||
| 698 | "#+end_src\n" | ||
| 699 | msgstr "" | ||
| 700 | |||
| 701 | #. type: Plain text | ||
| 702 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:443 | ||
| 703 | #, no-wrap | ||
| 704 | msgid "" | ||
| 705 | "#+name: emacs-multiple-cursors\n" | ||
| 706 | "#+header: :tangle emacs/init.el\n" | ||
| 707 | "#+begin_src emacs-lisp\n" | ||
| 708 | "(use-package multiple-cursors\n" | ||
| 709 | " :bind\n" | ||
| 710 | " ((\"C-S-c\" . mc/edit-lines)\n" | ||
| 711 | " (\"C->\" . mc/mark-next-like-this)\n" | ||
| 712 | " (\"C-<\" . mc/mark-previous-like-this)\n" | ||
| 713 | " (\"C-c C-S-c\" . mc/mark-all-like-this)\n" | ||
| 714 | " (\"C-\\\"\" . mc/skip-to-next-like-this)\n" | ||
| 715 | " (\"C-:\" . mc/skip-to-previous-like-this)))\n" | ||
| 716 | "#+end_src\n" | ||
| 717 | msgstr "" | ||
| 718 | |||
| 719 | #. type: Plain text | ||
| 720 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:451 | ||
| 721 | #, no-wrap | ||
| 722 | msgid "" | ||
| 723 | "#+name: emacs-expand-region\n" | ||
| 724 | "#+header: :tangle emacs/init.el\n" | ||
| 725 | "#+begin_src emacs-lisp\n" | ||
| 726 | "(use-package expand-region\n" | ||
| 727 | " :bind\n" | ||
| 728 | " ((\"C-M-=\" . er/expand-region)))\n" | ||
| 729 | "#+end_src\n" | ||
| 730 | msgstr "" | ||
| 731 | |||
| 732 | #. type: Plain text | ||
| 733 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:460 | ||
| 734 | #, no-wrap | ||
| 735 | msgid "" | ||
| 736 | "#+name: emacs-move-text\n" | ||
| 737 | "#+header: :tangle emacs/init.el\n" | ||
| 738 | "#+begin_src emacs-lisp\n" | ||
| 739 | "(use-package move-text\n" | ||
| 740 | " :bind\n" | ||
| 741 | " ((\"M-P\" . move-text-up)\n" | ||
| 742 | " (\"M-N\" . move-text-down)))\n" | ||
| 743 | "#+end_src\n" | ||
| 744 | msgstr "" | ||
| 745 | |||
| 746 | #. type: Plain text | ||
| 747 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:467 | ||
| 748 | #, no-wrap | ||
| 749 | msgid "" | ||
| 750 | "#+name: emacs-duplicate\n" | ||
| 751 | "#+header: :tangle emacs/init.el\n" | ||
| 752 | "#+begin_src emacs-lisp\n" | ||
| 753 | "(keymap-global-set \"C-'\" 'duplicate-dwim)\n" | ||
| 754 | "(setq duplicate-line-final-position 1)\n" | ||
| 755 | "#+end_src\n" | ||
| 756 | msgstr "" | ||
| 757 | |||
| 758 | #. type: Plain text | ||
| 759 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:475 | ||
| 760 | #, no-wrap | ||
| 761 | msgid "" | ||
| 762 | "#+name: emacs-hl-todo\n" | ||
| 763 | "#+header: :tangle emacs/init.el\n" | ||
| 764 | "#+begin_src emacs-lisp\n" | ||
| 765 | "(use-package hl-todo\n" | ||
| 766 | " :config\n" | ||
| 767 | " (global-hl-todo-mode 1))\n" | ||
| 768 | "#+end_src\n" | ||
| 769 | msgstr "" | ||
| 770 | |||
| 771 | #. type: Plain text | ||
| 772 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:490 | ||
| 773 | #, no-wrap | ||
| 774 | msgid "" | ||
| 775 | "#+name: emacs-ligature\n" | ||
| 776 | "#+header: :tangle emacs/init.el\n" | ||
| 777 | "#+begin_src emacs-lisp\n" | ||
| 778 | "(use-package ligature\n" | ||
| 779 | " :config\n" | ||
| 780 | " (ligature-set-ligatures\n" | ||
| 781 | " 't '(\"-<<\" \"-<\" \"-<-\" \"<--\" \"<---\" \"<<-\" \"<-\" \"->\" \"->>\" \"-->\" \"--->\" \"->-\" \">-\" \">>-\"\n" | ||
| 782 | " \"=<<\" \"=<\" \"=<=\" \"<==\" \"<===\" \"<<=\" \"<=\" \"=>\" \"=>>\" \"==>\" \"===>\" \"=>=\" \">=\" \">>=\"\n" | ||
| 783 | " \"<->\" \"<-->\" \"<--->\" \"<---->\" \"<=>\" \"<==>\" \"<===>\" \"<====>\" \"::\" \":::\" \"__\"\n" | ||
| 784 | " \"<~~\" \"</\" \"</>\" \"/>\" \"~~>\" \"==\" \"!=\" \"/=\" \"~=\" \"<>\" \"===\" \"!==\" \"!===\" \"=/=\" \"=!=\"\n" | ||
| 785 | " \"<:\" \":=\" \"*=\" \"*+\" \"<*\" \"<*>\" \"*>\" \"<|\" \"<|>\" \"|>\" \"<.\" \"<.>\" \".>\" \"+*\" \"=*\" \"=:\" \":>\"\n" | ||
| 786 | " \"(*\" \"*)\" \"/*\" \"*/\" \"[|\" \"|]\" \"{|\" \"|}\" \"++\" \"+++\" \"\\\\/\" \"/\\\\\" \"|-\" \"-|\" \"<!--\" \"<!---\"))\n" | ||
| 787 | " (global-ligature-mode -1))\n" | ||
| 788 | "#+end_src\n" | ||
| 789 | msgstr "" | ||
| 790 | |||
| 791 | #. type: Plain text | ||
| 792 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:496 | ||
| 793 | #, no-wrap | ||
| 794 | msgid "" | ||
| 795 | "#+name: emacs-magit\n" | ||
| 796 | "#+header: :tangle emacs/init.el\n" | ||
| 797 | "#+begin_src emacs-lisp\n" | ||
| 798 | "(use-package magit)\n" | ||
| 799 | "#+end_src\n" | ||
| 800 | msgstr "" | ||
| 801 | |||
| 802 | #. type: Plain text | ||
| 803 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:502 | ||
| 804 | #, no-wrap | ||
| 805 | msgid "" | ||
| 806 | "#+name: emacs-restart-emacs\n" | ||
| 807 | "#+header: :tangle emacs/init.el\n" | ||
| 808 | "#+begin_src emacs-lisp\n" | ||
| 809 | "(use-package restart-emacs)\n" | ||
| 810 | "#+end_src\n" | ||
| 811 | msgstr "" | ||
| 812 | |||
| 813 | #. type: Plain text | ||
| 814 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:508 | ||
| 815 | #, no-wrap | ||
| 816 | msgid "" | ||
| 817 | "#+name: emacs-bluetooth\n" | ||
| 818 | "#+header: :tangle emacs/init.el\n" | ||
| 819 | "#+begin_src emacs-lisp\n" | ||
| 820 | "(use-package bluetooth)\n" | ||
| 821 | "#+end_src\n" | ||
| 822 | msgstr "" | ||
| 823 | |||
| 824 | #. type: Plain text | ||
| 825 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:514 | ||
| 826 | #, no-wrap | ||
| 827 | msgid "" | ||
| 828 | "*** Installing fonts\n" | ||
| 829 | "1. Wget latest =PkgTTC-Iosevka-X.X.X.zip= asset from [[https://github.com/be5invis/Iosevka/releases][iosevka releases]]\n" | ||
| 830 | "2. ~unzip DOWNLOADED_FILE~\n" | ||
| 831 | "3. ~mv contents ~/.local/share/fonts~\n" | ||
| 832 | "4. ~fc-cache -fv~\n" | ||
| 833 | msgstr "" | ||
| 834 | |||
| 835 | #. type: Plain text | ||
| 836 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:518 | ||
| 837 | #, no-wrap | ||
| 838 | msgid "" | ||
| 839 | "*** i3 setup\n" | ||
| 840 | "~sudo apt install xorg i3 dbus-launch maim udiskie~\n" | ||
| 841 | "Edit =~/.xinitrc=\n" | ||
| 842 | msgstr "" | ||
| 843 | |||
| 844 | #. type: Plain text | ||
| 845 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:525 | ||
| 846 | #, no-wrap | ||
| 847 | msgid "" | ||
| 848 | "Disable access control for the current user.\n" | ||
| 849 | "#+name: xinitrc-xhost\n" | ||
| 850 | "#+header: :tangle .xinitrc\n" | ||
| 851 | "#+begin_src sh\n" | ||
| 852 | "xhost +SI:localuser:$USER\n" | ||
| 853 | "#+end_src\n" | ||
| 854 | msgstr "" | ||
| 855 | |||
| 856 | #. type: Plain text | ||
| 857 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:531 | ||
| 858 | #, no-wrap | ||
| 859 | msgid "" | ||
| 860 | "#+name: xinitrc-xset\n" | ||
| 861 | "#+header: :tangle .xinitrc\n" | ||
| 862 | "#+begin_src sh\n" | ||
| 863 | "xset r rate 250 30\n" | ||
| 864 | "#+end_src\n" | ||
| 865 | msgstr "" | ||
| 866 | |||
| 867 | #. type: Plain text | ||
| 868 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:537 | ||
| 869 | #, no-wrap | ||
| 870 | msgid "" | ||
| 871 | "#+name: xinitrc-dbus-launch\n" | ||
| 872 | "#+header: :tangle .xinitrc\n" | ||
| 873 | "#+begin_src sh\n" | ||
| 874 | "exec dbus-launch --exit-with-session i3\n" | ||
| 875 | "#+end_src\n" | ||
| 876 | msgstr "" | ||
| 877 | |||
| 878 | #. type: Plain text | ||
| 879 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:539 | ||
| 880 | #, no-wrap | ||
| 881 | msgid "Edit =~/.config/i3/config=\n" | ||
| 882 | msgstr "" | ||
| 883 | |||
| 884 | #. type: Plain text | ||
| 885 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:549 | ||
| 886 | #, no-wrap | ||
| 887 | msgid "" | ||
| 888 | "#+header: :tangle i3/config :exports none\n" | ||
| 889 | "#+begin_src conf-space\n" | ||
| 890 | "# Please see https://i3wm.org/docs/userguide.html for a complete reference!\n" | ||
| 891 | "#+end_src\n" | ||
| 892 | "#+name: i3-config-mod\n" | ||
| 893 | "#+header: :tangle i3/config\n" | ||
| 894 | "#+begin_src conf-space\n" | ||
| 895 | "set $mod Mod4\n" | ||
| 896 | "#+end_src\n" | ||
| 897 | msgstr "" | ||
| 898 | |||
| 899 | #. type: Plain text | ||
| 900 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:562 | ||
| 901 | #, no-wrap | ||
| 902 | msgid "" | ||
| 903 | "Font for window titles. Will also be used by the bar unless a\n" | ||
| 904 | "different font is used in the bar ={}= block below.\n" | ||
| 905 | "#+header: :tangle i3/config :exports none\n" | ||
| 906 | "#+begin_src conf-space\n" | ||
| 907 | "# Font for window titles. Will also be used by the bar unless a different font\n" | ||
| 908 | "# is used in the bar {} block below.\n" | ||
| 909 | "#+end_src\n" | ||
| 910 | "#+name: i3-config-font\n" | ||
| 911 | "#+header: :tangle i3/config\n" | ||
| 912 | "#+begin_src conf-space\n" | ||
| 913 | "font pango:monospace 12\n" | ||
| 914 | "#+end_src\n" | ||
| 915 | msgstr "" | ||
| 916 | |||
| 917 | #. type: Plain text | ||
| 918 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:575 | ||
| 919 | #, no-wrap | ||
| 920 | msgid "" | ||
| 921 | "Start XDG autostart =.desktop= files using =dex=. See also [[https://wiki.archlinux.org/index.php/XDG_Autostart][XDG Autostart -\n" | ||
| 922 | "ArchWiki]]\n" | ||
| 923 | "#+header: :tangle i3/config :exports none\n" | ||
| 924 | "#+begin_src conf-space\n" | ||
| 925 | "# Start XDG autostart .desktop files using dex. See also\n" | ||
| 926 | "# https://wiki.archlinux.org/index.php/XDG_Autostart\n" | ||
| 927 | "#+end_src\n" | ||
| 928 | "#+name: i3-config-dex\n" | ||
| 929 | "#+header: :tangle i3/config\n" | ||
| 930 | "#+begin_src conf-space\n" | ||
| 931 | "exec --no-startup-id dex --autostart --environment i3\n" | ||
| 932 | "#+end_src\n" | ||
| 933 | msgstr "" | ||
| 934 | |||
| 935 | #. type: Plain text | ||
| 936 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:578 | ||
| 937 | #, no-wrap | ||
| 938 | msgid "" | ||
| 939 | "The combination of ~xss-lock~, ~nm-applet~ and ~pactl~ is a popular choice,\n" | ||
| 940 | "so they are included here as an example. Modify as you see fit.\n" | ||
| 941 | msgstr "" | ||
| 942 | |||
| 943 | #. type: Plain text | ||
| 944 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:582 | ||
| 945 | #, no-wrap | ||
| 946 | msgid "" | ||
| 947 | "~xss-lock~ grabs a =logind suspend inhibit lock= and will use ~i3lock~ to\n" | ||
| 948 | "lock the screen before suspend. Use ~loginctl lock-session~ to lock your\n" | ||
| 949 | "screen.\n" | ||
| 950 | msgstr "" | ||
| 951 | |||
| 952 | #. type: Plain text | ||
| 953 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:587 | ||
| 954 | #, no-wrap | ||
| 955 | msgid "" | ||
| 956 | "#+header: :tangle i3/config :exports none\n" | ||
| 957 | "#+begin_src conf-space\n" | ||
| 958 | "# The combination of xss-lock, nm-applet and pactl is a popular choice, so\n" | ||
| 959 | "# they are included here as an example. Modify as you see fit.\n" | ||
| 960 | msgstr "" | ||
| 961 | |||
| 962 | #. type: Plain text | ||
| 963 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:596 | ||
| 964 | #, no-wrap | ||
| 965 | msgid "" | ||
| 966 | "# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the\n" | ||
| 967 | "# screen before suspend. Use loginctl lock-session to lock your screen.\n" | ||
| 968 | "#+end_src\n" | ||
| 969 | "#+name: i3-config-xss-lock\n" | ||
| 970 | "#+header: :tangle i3/config\n" | ||
| 971 | "#+begin_src conf-space\n" | ||
| 972 | "exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork\n" | ||
| 973 | "#+end_src\n" | ||
| 974 | msgstr "" | ||
| 975 | |||
| 976 | #. type: Plain text | ||
| 977 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:602 | ||
| 978 | #, no-wrap | ||
| 979 | msgid "" | ||
| 980 | "#+name: i3-config-setxkbmap\n" | ||
| 981 | "#+header: :tangle i3/config\n" | ||
| 982 | "#+begin_src conf-space\n" | ||
| 983 | "exec --no-startup-id setxkbmap -layout \"us,ru\" -option 'grp:shifts_toggle' -option \"ctrl:nocaps\"\n" | ||
| 984 | "#+end_src\n" | ||
| 985 | msgstr "" | ||
| 986 | |||
| 987 | #. type: Plain text | ||
| 988 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:608 | ||
| 989 | #, no-wrap | ||
| 990 | msgid "" | ||
| 991 | "#+name: i3-config-udiskie\n" | ||
| 992 | "#+header: :tangle i3/config\n" | ||
| 993 | "#+begin_src conf-space\n" | ||
| 994 | "exec --no-startup-id udiskie --automount\n" | ||
| 995 | "#+end_src\n" | ||
| 996 | msgstr "" | ||
| 997 | |||
| 998 | #. type: Plain text | ||
| 999 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:622 | ||
| 1000 | #, no-wrap | ||
| 1001 | msgid "" | ||
| 1002 | "NetworkManager is the most popular way to manage wireless networks on\n" | ||
| 1003 | "Linux, and ~nm-applet~ is a desktop environment-independent system tray\n" | ||
| 1004 | "GUI for it.\n" | ||
| 1005 | "#+header: :tangle i3/config :exports none\n" | ||
| 1006 | "#+begin_src conf-space\n" | ||
| 1007 | "# NetworkManager is the most popular way to manage wireless networks on Linux,\n" | ||
| 1008 | "# and nm-applet is a desktop environment-independent system tray GUI for it.\n" | ||
| 1009 | "#+end_src\n" | ||
| 1010 | "#+name: i3-config-nm-applet\n" | ||
| 1011 | "#+header: :tangle i3/config\n" | ||
| 1012 | "#+begin_src conf-space\n" | ||
| 1013 | "exec --no-startup-id nm-applet\n" | ||
| 1014 | "#+end_src\n" | ||
| 1015 | msgstr "" | ||
| 1016 | |||
| 1017 | #. type: Plain text | ||
| 1018 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:628 | ||
| 1019 | #, no-wrap | ||
| 1020 | msgid "" | ||
| 1021 | "#+name: i3-config-emacs\n" | ||
| 1022 | "#+header: :tangle i3/config\n" | ||
| 1023 | "#+begin_src conf-space\n" | ||
| 1024 | "exec emacs --background black\n" | ||
| 1025 | "#+end_src\n" | ||
| 1026 | msgstr "" | ||
| 1027 | |||
| 1028 | #. type: Plain text | ||
| 1029 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:643 | ||
| 1030 | #, no-wrap | ||
| 1031 | msgid "" | ||
| 1032 | "Use ~pactl~ to adjust volume in PulseAudio.\n" | ||
| 1033 | "#+header: :tangle i3/config :exports none\n" | ||
| 1034 | "#+begin_src conf-space\n" | ||
| 1035 | "# Use pactl to adjust volume in PulseAudio.\n" | ||
| 1036 | "#+end_src\n" | ||
| 1037 | "#+name: i3-config-pulseaudio\n" | ||
| 1038 | "#+header: :tangle i3/config\n" | ||
| 1039 | "#+begin_src conf-space\n" | ||
| 1040 | "set $refresh_i3status killall -SIGUSR1 i3status\n" | ||
| 1041 | "bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status\n" | ||
| 1042 | "bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status\n" | ||
| 1043 | "bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status\n" | ||
| 1044 | "bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status\n" | ||
| 1045 | "#+end_src\n" | ||
| 1046 | msgstr "" | ||
| 1047 | |||
| 1048 | #. type: Plain text | ||
| 1049 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:655 | ||
| 1050 | #, no-wrap | ||
| 1051 | msgid "" | ||
| 1052 | "Change brightness.\n" | ||
| 1053 | "#+header: :tangle i3/config :exports none\n" | ||
| 1054 | "#+begin_src conf-space\n" | ||
| 1055 | "# Change brightness\n" | ||
| 1056 | "#+end_src\n" | ||
| 1057 | "#+name: i3-config-brightnessctl\n" | ||
| 1058 | "#+header: :tangle i3/config\n" | ||
| 1059 | "#+begin_src conf-space\n" | ||
| 1060 | "bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl set +5%\n" | ||
| 1061 | "bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl set 5%-\n" | ||
| 1062 | "#+end_src\n" | ||
| 1063 | msgstr "" | ||
| 1064 | |||
| 1065 | #. type: Plain text | ||
| 1066 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:666 | ||
| 1067 | #, no-wrap | ||
| 1068 | msgid "" | ||
| 1069 | "Use =Mouse+$mod= to drag floating windows to their wanted position.\n" | ||
| 1070 | "#+header: :tangle i3/config :exports none\n" | ||
| 1071 | "#+begin_src conf-space\n" | ||
| 1072 | "# Use Mouse+$mod to drag floating windows to their wanted position.\n" | ||
| 1073 | "#+end_src\n" | ||
| 1074 | "#+name: i3-config-floating_modifier\n" | ||
| 1075 | "#+header: :tangle i3/config\n" | ||
| 1076 | "#+begin_src conf-space\n" | ||
| 1077 | "floating_modifier $mod\n" | ||
| 1078 | "#+end_src\n" | ||
| 1079 | msgstr "" | ||
| 1080 | |||
| 1081 | #. type: Plain text | ||
| 1082 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:680 | ||
| 1083 | #, no-wrap | ||
| 1084 | msgid "" | ||
| 1085 | "Move tiling windows via drag & drop by left-clicking into the title\n" | ||
| 1086 | "bar, or left-clicking anywhere into the window while holding the\n" | ||
| 1087 | "floating modifier.\n" | ||
| 1088 | "#+header: :tangle i3/config :exports none\n" | ||
| 1089 | "#+begin_src conf-space\n" | ||
| 1090 | "# Move tiling windows via drag & drop by left-clicking into the title bar,\n" | ||
| 1091 | "# or left-clicking anywhere into the window while holding the floating modifier.\n" | ||
| 1092 | "#+end_src\n" | ||
| 1093 | "#+name: i3-config-tiling_drag-modifier\n" | ||
| 1094 | "#+header: :tangle i3/config\n" | ||
| 1095 | "#+begin_src conf-space\n" | ||
| 1096 | "tiling_drag modifier titlebar\n" | ||
| 1097 | "#+end_src\n" | ||
| 1098 | msgstr "" | ||
| 1099 | |||
| 1100 | #. type: Plain text | ||
| 1101 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:686 | ||
| 1102 | #, no-wrap | ||
| 1103 | msgid "" | ||
| 1104 | "#+name: i3-config-bindsym\n" | ||
| 1105 | "#+header: :tangle i3/config\n" | ||
| 1106 | "#+begin_src conf-space\n" | ||
| 1107 | "# start a terminal\n" | ||
| 1108 | "bindsym $mod+Return exec emacsclient -c\n" | ||
| 1109 | msgstr "" | ||
| 1110 | |||
| 1111 | #. type: Plain text | ||
| 1112 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:689 | ||
| 1113 | #, no-wrap | ||
| 1114 | msgid "" | ||
| 1115 | "# kill focused window\n" | ||
| 1116 | "bindsym $mod+Shift+q kill\n" | ||
| 1117 | msgstr "" | ||
| 1118 | |||
| 1119 | #. type: Plain text | ||
| 1120 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:692 | ||
| 1121 | #, no-wrap | ||
| 1122 | msgid "" | ||
| 1123 | "# start dmenu (a program launcher)\n" | ||
| 1124 | "bindsym $mod+d exec --no-startup-id i3-dmenu-desktop --dmenu='dmenu -i -fn 12'\n" | ||
| 1125 | msgstr "" | ||
| 1126 | |||
| 1127 | #. type: Plain text | ||
| 1128 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:698 | ||
| 1129 | #, no-wrap | ||
| 1130 | msgid "" | ||
| 1131 | "# change focus\n" | ||
| 1132 | "bindsym $mod+j focus left\n" | ||
| 1133 | "bindsym $mod+k focus down\n" | ||
| 1134 | "bindsym $mod+l focus up\n" | ||
| 1135 | "bindsym $mod+semicolon focus right\n" | ||
| 1136 | msgstr "" | ||
| 1137 | |||
| 1138 | #. type: Plain text | ||
| 1139 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:704 | ||
| 1140 | #, no-wrap | ||
| 1141 | msgid "" | ||
| 1142 | "# alternatively, you can use the cursor keys:\n" | ||
| 1143 | "bindsym $mod+Left focus left\n" | ||
| 1144 | "bindsym $mod+Down focus down\n" | ||
| 1145 | "bindsym $mod+Up focus up\n" | ||
| 1146 | "bindsym $mod+Right focus right\n" | ||
| 1147 | msgstr "" | ||
| 1148 | |||
| 1149 | #. type: Plain text | ||
| 1150 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:710 | ||
| 1151 | #, no-wrap | ||
| 1152 | msgid "" | ||
| 1153 | "# move focused window\n" | ||
| 1154 | "bindsym $mod+Shift+j move left\n" | ||
| 1155 | "bindsym $mod+Shift+k move down\n" | ||
| 1156 | "bindsym $mod+Shift+l move up\n" | ||
| 1157 | "bindsym $mod+Shift+semicolon move right\n" | ||
| 1158 | msgstr "" | ||
| 1159 | |||
| 1160 | #. type: Plain text | ||
| 1161 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:716 | ||
| 1162 | #, no-wrap | ||
| 1163 | msgid "" | ||
| 1164 | "# alternatively, you can use the cursor keys:\n" | ||
| 1165 | "bindsym $mod+Shift+Left move left\n" | ||
| 1166 | "bindsym $mod+Shift+Down move down\n" | ||
| 1167 | "bindsym $mod+Shift+Up move up\n" | ||
| 1168 | "bindsym $mod+Shift+Right move right\n" | ||
| 1169 | msgstr "" | ||
| 1170 | |||
| 1171 | #. type: Plain text | ||
| 1172 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:719 | ||
| 1173 | #, no-wrap | ||
| 1174 | msgid "" | ||
| 1175 | "# split in horizontal orientation\n" | ||
| 1176 | "bindsym $mod+h split h\n" | ||
| 1177 | msgstr "" | ||
| 1178 | |||
| 1179 | #. type: Plain text | ||
| 1180 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:722 | ||
| 1181 | #, no-wrap | ||
| 1182 | msgid "" | ||
| 1183 | "# split in vertical orientation\n" | ||
| 1184 | "bindsym $mod+v split v\n" | ||
| 1185 | msgstr "" | ||
| 1186 | |||
| 1187 | #. type: Plain text | ||
| 1188 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:725 | ||
| 1189 | #, no-wrap | ||
| 1190 | msgid "" | ||
| 1191 | "# enter fullscreen mode for the focused container\n" | ||
| 1192 | "bindsym $mod+f fullscreen toggle\n" | ||
| 1193 | msgstr "" | ||
| 1194 | |||
| 1195 | #. type: Plain text | ||
| 1196 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:730 | ||
| 1197 | #, no-wrap | ||
| 1198 | msgid "" | ||
| 1199 | "# change container layout (stacked, tabbed, toggle split)\n" | ||
| 1200 | "bindsym $mod+s layout stacking\n" | ||
| 1201 | "bindsym $mod+w layout tabbed\n" | ||
| 1202 | "bindsym $mod+e layout toggle split\n" | ||
| 1203 | msgstr "" | ||
| 1204 | |||
| 1205 | #. type: Plain text | ||
| 1206 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:733 | ||
| 1207 | #, no-wrap | ||
| 1208 | msgid "" | ||
| 1209 | "# toggle tiling / floating\n" | ||
| 1210 | "bindsym $mod+Shift+space floating toggle\n" | ||
| 1211 | msgstr "" | ||
| 1212 | |||
| 1213 | #. type: Plain text | ||
| 1214 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:736 | ||
| 1215 | #, no-wrap | ||
| 1216 | msgid "" | ||
| 1217 | "# change focus between tiling / floating windows\n" | ||
| 1218 | "bindsym $mod+space focus mode_toggle\n" | ||
| 1219 | msgstr "" | ||
| 1220 | |||
| 1221 | #. type: Plain text | ||
| 1222 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:739 | ||
| 1223 | #, no-wrap | ||
| 1224 | msgid "" | ||
| 1225 | "# focus the parent container\n" | ||
| 1226 | "bindsym $mod+a focus parent\n" | ||
| 1227 | msgstr "" | ||
| 1228 | |||
| 1229 | #. type: Plain text | ||
| 1230 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:742 | ||
| 1231 | #, no-wrap | ||
| 1232 | msgid "" | ||
| 1233 | "# focus the child container\n" | ||
| 1234 | "#bindsym $mod+d focus child\n" | ||
| 1235 | msgstr "" | ||
| 1236 | |||
| 1237 | #. type: Plain text | ||
| 1238 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:755 | ||
| 1239 | #, no-wrap | ||
| 1240 | msgid "" | ||
| 1241 | "# Define names for default workspaces for which we configure key bindings later on.\n" | ||
| 1242 | "# We use variables to avoid repeating the names in multiple places.\n" | ||
| 1243 | "set $ws1 \"1\"\n" | ||
| 1244 | "set $ws2 \"2\"\n" | ||
| 1245 | "set $ws3 \"3\"\n" | ||
| 1246 | "set $ws4 \"4\"\n" | ||
| 1247 | "set $ws5 \"5\"\n" | ||
| 1248 | "set $ws6 \"6\"\n" | ||
| 1249 | "set $ws7 \"7\"\n" | ||
| 1250 | "set $ws8 \"8\"\n" | ||
| 1251 | "set $ws9 \"9\"\n" | ||
| 1252 | "set $ws10 \"10\"\n" | ||
| 1253 | msgstr "" | ||
| 1254 | |||
| 1255 | #. type: Plain text | ||
| 1256 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:767 | ||
| 1257 | #, no-wrap | ||
| 1258 | msgid "" | ||
| 1259 | "# switch to workspace\n" | ||
| 1260 | "bindsym $mod+1 workspace number $ws1\n" | ||
| 1261 | "bindsym $mod+2 workspace number $ws2\n" | ||
| 1262 | "bindsym $mod+3 workspace number $ws3\n" | ||
| 1263 | "bindsym $mod+4 workspace number $ws4\n" | ||
| 1264 | "bindsym $mod+5 workspace number $ws5\n" | ||
| 1265 | "bindsym $mod+6 workspace number $ws6\n" | ||
| 1266 | "bindsym $mod+7 workspace number $ws7\n" | ||
| 1267 | "bindsym $mod+8 workspace number $ws8\n" | ||
| 1268 | "bindsym $mod+9 workspace number $ws9\n" | ||
| 1269 | "bindsym $mod+0 workspace number $ws10\n" | ||
| 1270 | msgstr "" | ||
| 1271 | |||
| 1272 | #. type: Plain text | ||
| 1273 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:779 | ||
| 1274 | #, no-wrap | ||
| 1275 | msgid "" | ||
| 1276 | "# move focused container to workspace\n" | ||
| 1277 | "bindsym $mod+Shift+1 move container to workspace number $ws1\n" | ||
| 1278 | "bindsym $mod+Shift+2 move container to workspace number $ws2\n" | ||
| 1279 | "bindsym $mod+Shift+3 move container to workspace number $ws3\n" | ||
| 1280 | "bindsym $mod+Shift+4 move container to workspace number $ws4\n" | ||
| 1281 | "bindsym $mod+Shift+5 move container to workspace number $ws5\n" | ||
| 1282 | "bindsym $mod+Shift+6 move container to workspace number $ws6\n" | ||
| 1283 | "bindsym $mod+Shift+7 move container to workspace number $ws7\n" | ||
| 1284 | "bindsym $mod+Shift+8 move container to workspace number $ws8\n" | ||
| 1285 | "bindsym $mod+Shift+9 move container to workspace number $ws9\n" | ||
| 1286 | "bindsym $mod+Shift+0 move container to workspace number $ws10\n" | ||
| 1287 | msgstr "" | ||
| 1288 | |||
| 1289 | #. type: Plain text | ||
| 1290 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:788 | ||
| 1291 | #, no-wrap | ||
| 1292 | msgid "" | ||
| 1293 | "# reload the configuration file\n" | ||
| 1294 | "bindsym $mod+Shift+c reload\n" | ||
| 1295 | "# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)\n" | ||
| 1296 | "bindsym $mod+Shift+r restart\n" | ||
| 1297 | "# exit i3 (logs you out of your X session)\n" | ||
| 1298 | "bindsym $mod+Shift+e exec i3-nagbar -t warning -m \\\n" | ||
| 1299 | "'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' \\\n" | ||
| 1300 | "-B 'Yes, exit i3' 'i3-msg exit'\n" | ||
| 1301 | msgstr "" | ||
| 1302 | |||
| 1303 | #. type: Plain text | ||
| 1304 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:792 | ||
| 1305 | #, no-wrap | ||
| 1306 | msgid "" | ||
| 1307 | "# resize window (you can also use the mouse for that)\n" | ||
| 1308 | "mode \"resize\" {\n" | ||
| 1309 | "# These bindings trigger as soon as you enter the resize mode\n" | ||
| 1310 | msgstr "" | ||
| 1311 | |||
| 1312 | #. type: Plain text | ||
| 1313 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:801 | ||
| 1314 | #, no-wrap | ||
| 1315 | msgid "" | ||
| 1316 | "# Pressing left will shrink the window’s width.\n" | ||
| 1317 | "# Pressing right will grow the window’s width.\n" | ||
| 1318 | "# Pressing up will shrink the window’s height.\n" | ||
| 1319 | "# Pressing down will grow the window’s height.\n" | ||
| 1320 | "bindsym Left resize shrink width 10 px or 10 ppt\n" | ||
| 1321 | "bindsym Down resize grow height 10 px or 10 ppt\n" | ||
| 1322 | "bindsym Up resize shrink height 10 px or 10 ppt\n" | ||
| 1323 | "bindsym Right resize grow width 10 px or 10 ppt\n" | ||
| 1324 | msgstr "" | ||
| 1325 | |||
| 1326 | #. type: Plain text | ||
| 1327 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:807 | ||
| 1328 | #, no-wrap | ||
| 1329 | msgid "" | ||
| 1330 | "# back to normal: Enter or Escape or $mod+r\n" | ||
| 1331 | "bindsym Return mode \"default\"\n" | ||
| 1332 | "bindsym Escape mode \"default\"\n" | ||
| 1333 | "bindsym $mod+r mode \"default\"\n" | ||
| 1334 | "}\n" | ||
| 1335 | msgstr "" | ||
| 1336 | |||
| 1337 | #. type: Plain text | ||
| 1338 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:810 | ||
| 1339 | #, no-wrap | ||
| 1340 | msgid "" | ||
| 1341 | "bindsym $mod+r mode \"resize\"\n" | ||
| 1342 | "#+end_src\n" | ||
| 1343 | msgstr "" | ||
| 1344 | |||
| 1345 | #. type: Plain text | ||
| 1346 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:820 | ||
| 1347 | #, no-wrap | ||
| 1348 | msgid "" | ||
| 1349 | "#+name: i3-config-bar\n" | ||
| 1350 | "#+header: :tangle i3/config\n" | ||
| 1351 | "#+begin_src conf-space\n" | ||
| 1352 | "# Start i3bar to display a workspace bar (plus the system information i3status\n" | ||
| 1353 | "# finds out, if available)\n" | ||
| 1354 | "bar {\n" | ||
| 1355 | "status_command i3status\n" | ||
| 1356 | "}\n" | ||
| 1357 | "#+end_src\n" | ||
| 1358 | msgstr "" | ||
| 1359 | |||
| 1360 | #. type: Plain text | ||
| 1361 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:830 | ||
| 1362 | #, no-wrap | ||
| 1363 | msgid "" | ||
| 1364 | "#+name: i3-config-print-screen\n" | ||
| 1365 | "#+header: :tangle i3/config\n" | ||
| 1366 | "#+begin_src conf-space\n" | ||
| 1367 | "# Print screen\n" | ||
| 1368 | "bindsym --release Print exec \"maim $HOME/multimedia/screenshots/$(date '+%y%m%d-%H%M-%S').png\"\n" | ||
| 1369 | "bindsym --release Shift+Print exec \"maim --hidecursor --select $HOME/multimedia/screenshots/$(date '+%y%m%d-%H%M-%S').png\"\n" | ||
| 1370 | "bindsym --release Ctrl+Print exec \"maim | xclip -sel clip -t image/png\"\n" | ||
| 1371 | "bindsym --release Shift+Ctrl+Print exec \"maim --hidecursor --select | xclip -sel clip -t image/png\"\n" | ||
| 1372 | "#+end_src\n" | ||
| 1373 | msgstr "" | ||
| 1374 | |||
| 1375 | #. type: Plain text | ||
| 1376 | #: src/en/articles/gnu+linux-and-emacs-introduction/index.org:832 | ||
| 1377 | #, no-wrap | ||
| 1378 | msgid "" | ||
| 1379 | "- ~startx~\n" | ||
| 1380 | "- =s-RET=\n" | ||
| 1381 | msgstr "" | ||
