|
@@ -7526,6 +7526,78 @@ deb http://repo.ajenti.org/debian main main debian
|
7526
|
7526
|
#+END_SRC
|
7527
|
7527
|
|
7528
|
7528
|
*** Emacs
|
|
7529
|
+An example Emacs configuration file. This should be saved to */home/myusername/.emacs* and */root/.emacs*
|
|
7530
|
+
|
|
7531
|
+#+BEGIN_SRC: bash
|
|
7532
|
+(add-to-list 'load-path "~/.emacs.d/")
|
|
7533
|
+
|
|
7534
|
+;; ===== Remove trailing whitepace ======================================
|
|
7535
|
+
|
|
7536
|
+(add-hook 'before-save-hook 'delete-trailing-whitespace)
|
|
7537
|
+
|
|
7538
|
+;; ===== Press CTRL-L to go to a line number ============================
|
|
7539
|
+
|
|
7540
|
+(global-set-key "\C-l" 'goto-line)
|
|
7541
|
+
|
|
7542
|
+;; ===== Show line numbers ==============================================
|
|
7543
|
+
|
|
7544
|
+(add-hook 'find-file-hook (lambda () (linum-mode 1)))
|
|
7545
|
+
|
|
7546
|
+;; ===== Enable line wrapping in org-mode ===============================
|
|
7547
|
+
|
|
7548
|
+ (add-hook 'org-mode-hook
|
|
7549
|
+ '(lambda ()
|
|
7550
|
+ (visual-line-mode 1)))
|
|
7551
|
+
|
|
7552
|
+;; ===== Enable shift select in org mode ================================
|
|
7553
|
+
|
|
7554
|
+(setq org-support-shift-select t)
|
|
7555
|
+
|
|
7556
|
+;; ===== Set standard indent to 4 spaces ================================
|
|
7557
|
+
|
|
7558
|
+(setq standard-indent 4)
|
|
7559
|
+(setq-default tab-width 4)
|
|
7560
|
+(setq c-basic-offset 4)
|
|
7561
|
+
|
|
7562
|
+;; ===== Support Wheel Mouse Scrolling =================================
|
|
7563
|
+
|
|
7564
|
+(mouse-wheel-mode t)
|
|
7565
|
+
|
|
7566
|
+;; ===== Place Backup Files in Specific Directory ======================
|
|
7567
|
+
|
|
7568
|
+(setq make-backup-files t)
|
|
7569
|
+(setq version-control t)
|
|
7570
|
+(setq backup-directory-alist (quote ((".*" . "~/.emacs_backups/"))))
|
|
7571
|
+
|
|
7572
|
+;; ===== Make Text mode the default mode for new buffers ===============
|
|
7573
|
+
|
|
7574
|
+(setq default-major-mode 'text-mode)
|
|
7575
|
+
|
|
7576
|
+;; ===== Line length ===================================================
|
|
7577
|
+
|
|
7578
|
+(setq-default fill-column 72)
|
|
7579
|
+
|
|
7580
|
+;; ===== Enable Line and Column Numbering ==============================
|
|
7581
|
+
|
|
7582
|
+(line-number-mode 1)
|
|
7583
|
+(column-number-mode 1)
|
|
7584
|
+
|
|
7585
|
+;; ===== Turn on Auto Fill mode automatically in all modes =============
|
|
7586
|
+
|
|
7587
|
+;; Auto-fill-mode the the automatic wrapping of lines and insertion of
|
|
7588
|
+;; newlines when the cursor goes over the column limit.
|
|
7589
|
+
|
|
7590
|
+;; This should actually turn on auto-fill-mode by default in all major
|
|
7591
|
+;; modes. The other way to do this is to turn on the fill for specific
|
|
7592
|
+;; modes via hooks.
|
|
7593
|
+
|
|
7594
|
+(setq auto-fill-mode 1)
|
|
7595
|
+
|
|
7596
|
+;; ===== Enable GPG encryption ========================================
|
|
7597
|
+
|
|
7598
|
+(require 'epa)
|
|
7599
|
+(epa-file-enable)
|
|
7600
|
+#+END_SRC
|
7529
|
7601
|
*** Boot (uEnv.txt)
|
7530
|
7602
|
An example of the uEnv.txt file within the BOOT partition on the microSD card of the BBB.
|
7531
|
7603
|
|