diff options
-rw-r--r-- | config.org | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/config.org b/config.org index bc094c7..0bc7454 100644 --- a/config.org +++ b/config.org | |||
@@ -1456,19 +1456,45 @@ from [[https://github.com/Fuco1/.emacs.d/blob/a8230343bb7e2f07f5eac8e63e5506fa16 | |||
1456 | 1456 | ||
1457 | * Applications | 1457 | * Applications |
1458 | 1458 | ||
1459 | ** Web browsing | ||
1460 | |||
1461 | #+begin_src emacs-lisp | ||
1462 | (cuss browse-url-browser-function 'browse-url-firefox) | ||
1463 | (cuss browse-url-new-window-flag t | ||
1464 | "Always open a new browser window.") | ||
1465 | |||
1466 | ;;(cuss browse-url-generic-program "firefox") | ||
1467 | (cuss browse-url-firefox-new-window-is-tab t | ||
1468 | "Or a new tab, in Firefox.") | ||
1469 | |||
1470 | ;; we need to add Firefox to `exec-path' on Windows | ||
1471 | (at-work | ||
1472 | (add-to-list 'exec-path "c:/Program Files/Mozilla Firefox")) | ||
1473 | #+end_src | ||
1474 | |||
1459 | ** Dired | 1475 | ** Dired |
1460 | 1476 | ||
1461 | *** Basic customization | 1477 | *** Basic customization |
1462 | 1478 | ||
1463 | #+begin_src emacs-lisp | 1479 | #+begin_src emacs-lisp |
1480 | (defun acdw/setup-dired-mode () | ||
1481 | (hl-line-mode) | ||
1482 | (dired-hide-details-mode)) | ||
1483 | |||
1464 | ;; highlight the current line in dired. | 1484 | ;; highlight the current line in dired. |
1465 | (add-hook 'dired-mode-hook #'hl-line-mode) | 1485 | (add-hook 'dired-mode-hook #'acdw/setup-dired-mode) |
1466 | 1486 | ||
1467 | (cuss dired-recursive-copies 'always | 1487 | (cuss dired-recursive-copies 'always |
1468 | "Always recursively copy.") | 1488 | "Always recursively copy.") |
1469 | 1489 | ||
1490 | (cuss dired-recursive-deletes 'always | ||
1491 | "Always recursively delete.") | ||
1492 | |||
1493 | (cuss delete-by-moving-to-trash t) | ||
1494 | |||
1470 | (cuss dired-listing-switches "-alh" | 1495 | (cuss dired-listing-switches "-alh" |
1471 | "Show All items, Listed out, with Human-readable sizes.") | 1496 | "Show (A)lmost all items, |
1497 | (l)isted out, with (h)uman-readable sizes.") | ||
1472 | #+end_src | 1498 | #+end_src |
1473 | 1499 | ||
1474 | *** Expand subtrees | 1500 | *** Expand subtrees |