'(progn
(add-hook 'cperl-mode-hook (lambda() (cperl-set-style "K&R")
;; (setq cperl-close-paren-offset -4)
- (setq cperl-continued-statement-offset 4)
- (setq cperl-indent-level 4)
+ (setq cperl-continued-statement-offset 2)
+ (setq cperl-indent-level 2)
(setq cperl-indent-parens-as-block t)
(setq cperl-tab-always-indent t)
(perlcritic-mode)
#+BEGIN_SRC emacs-lisp :tangle no
(if (string-equal system-type "darwin")
- (if (file-exists-p "/opt/local/bin/trash")
- (progn
- (defun system-move-file-to-trash (file)
- "Use osx port trash to move files to trash"
- (call-process "trash" nil nil nil file)
- )
- )
- )
- )
+ (if (file-exists-p "/opt/local/bin/trash")
+ (progn
+ (defun system-move-file-to-trash (file)
+ "Use osx port trash to move files to trash"
+ (call-process "trash" nil nil nil file)
+ ))))
#+END_SRC
With trash you can recover files to it's original location.
;; (package-initialize)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(add-to-list 'package-archives '("elpa" . "https://elpa.gnu.org/packages/"))
+ (setq package-install-upgrade-built-in t)
))
#+END_SRC
#+BEGIN_SRC emacs-lisp
- (setq type-break-keystroke-threshold '(3600 . 18000))
- (type-break-mode t)
+ (if (string-equal system-type "darwin")
+ (setq type-break-keystroke-threshold '(3600 . 18000))
+ (type-break-mode t))
#+END_SRC
* aliases
* key bindings
#+BEGIN_SRC emacs-lisp
- (if (>= emacs-major-version 28)
+ (if (string-equal system-type "darwin")
(progn (setq mac-command-modifier 'super)
(setq mac-option-modifier 'meta)))
https://github.com/IBM/plex/releases
#+begin_src emacs-lisp :tangle no
- (seq-filter (lambda (font)
- (when-let ((info (font-info font)))
- (string-match-p "spacing=100" (aref info 1))))
- (font-family-list))
+ (if (string-equal system-type "darwin")
+ (seq-filter (lambda (font)
+ (when-let ((info (font-info font)))
+ (string-match-p "spacing=100" (aref info 1))))
+ (font-family-list)))
#+end_src