GNU Emacs for All Sachin Patil (psachin) Red Hat EmacsConf 2019 - - PowerPoint PPT Presentation

gnu emacs for all
SMART_READER_LITE
LIVE PREVIEW

GNU Emacs for All Sachin Patil (psachin) Red Hat EmacsConf 2019 - - PowerPoint PPT Presentation

GNU Emacs for All Sachin Patil (psachin) Red Hat EmacsConf 2019 Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 1 / 32 ERC config: User configuration (setq erc-user-full-name user-full-name erc-nick user-login-name


slide-1
SLIDE 1

GNU Emacs for All

Sachin Patil (psachin)

Red Hat

EmacsConf 2019

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 1 / 32

slide-2
SLIDE 2

ERC config: User configuration

(setq erc-user-full-name user-full-name erc-nick user-login-name erc-keywords (quote("training" "swift" "emacs")) erc-current-nick-highlight-type 'all erc-notify-list erc-pals erc-autojoin-enable t erc-autojoin-channels-alist

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 2 / 32

slide-3
SLIDE 3

ERC config: Channels

... erc-autojoin-enable t erc-autojoin-channels-alist (quote (("oftc" "#tor" "#kernelnewbies" "#kernel-outreachy") ("freenode.net" "#emacs" "#emacs-beginners" "#linuxjournal") ("GIMPNet" "#outreachy")))

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 3 / 32

slide-4
SLIDE 4

ERC config: Modules

erc-modules (quote (autojoin smiley notify))

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 4 / 32

slide-5
SLIDE 5

ERC config: Logging

;; Logging erc-enable-logging t erc-log-mode t erc-log-channels-directory "~/.erc/logs/" ;; Timestamp position erc-insert-timestamp-function 'erc-insert-timestamp-left ;; Show channel name in the notification. ;; Please apply: https://gitlab.com/snippets/1790218 erc-notifications-show-channel t)

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 5 / 32

slide-6
SLIDE 6

ERC config: Extra config

;; Turn off linum for ERC buffer (defun psachin/turn-off-linum () "Turn off linum for ERC buffers." (interactive) (display-line-numbers-mode 0)) (add-hook 'erc-mode-hook 'psachin/turn-off-linum)

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 6 / 32

slide-7
SLIDE 7

ERC config: Start server

(defun erc-start() "Start ERC." (interactive) (erc :server "irc.freenode.net") (erc :server "irc.oftc.net") (erc :server "irc.gnome.org")) https://gitlab.com/psachin/emacs.d/blob/master/irc.org

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 7 / 32

slide-8
SLIDE 8

Documents: L

AT

EX

Figure: L

AT

EX Document

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 8 / 32

slide-9
SLIDE 9

Documents: Image

Figure: Logo

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 9 / 32

slide-10
SLIDE 10

Documents: Table

Table: Swift Partition table

Replica # 3 Replica # 2 Replica # 11 Partition # 1 D #2 D #3 D #4 Partition # 2 D #3 D #4 D #5 Partition # 3 D #4 D #5 D #6 Partition # 4 D #5 D #6 D #7 Partition # 5 D #6 D #7 D #8 Partition # 6 D #7 D #8 D #1 Partition # 7 D #8 D #1 D #2 Partition # 8 D #1 D #2 D #3

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 10 / 32

slide-11
SLIDE 11

Documents: Source code

#+BEGIN_SRC python -n import os def foo(os): pass #+END_SRC

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 11 / 32

slide-12
SLIDE 12

Documents: Flow diagram(ditaa)

. +--------+ +-------+ +-------+ . | | --+ ditaa +--> | | . | Text | +-------+ |diagram| . |Document| |!magic!| | | . | {d}| | cFF3 | | cGRE | . +---+----+ +-------+ +-------+ . : ^ . | Lots of work | . +-------------------------+

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 12 / 32

slide-13
SLIDE 13

Documents: Flow diagram(ditaa)

Figure: Image imported using ditaa

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 13 / 32

slide-14
SLIDE 14

Trello

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 14 / 32

slide-15
SLIDE 15
  • rg-trello

http://org-trello.github.io/trello-setup.html Example: ;; ~/.emacs.d/.trello/USERNAME.el (setq org-trello-consumer-key "abc..."

  • rg-trello-access-token "def...")

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 15 / 32

slide-16
SLIDE 16

Connect to the Trello board

(use-package org-trello :ensure t :config (custom-set-variables '(org-trello-files '("~/trello/myboard.org"))))

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 16 / 32

slide-17
SLIDE 17

Presentation: L

AT

EX Beamer

Figure: Beamer Presentation

https://opensource.com/article/18/4/ how-create-latex-documents-emacs

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 17 / 32

slide-18
SLIDE 18

Presentation: Reveal.js

https://github.com/yjwen/org-reveal https://opensource.com/article/18/2/ how-create-slides-emacs-org-mode-and-revealjs

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 18 / 32

slide-19
SLIDE 19

Presentation: org-tree-slide

https://github.com/takaxp/org-tree-slide

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 19 / 32

slide-20
SLIDE 20

Version control: magit

https://magit.vc/ https://opensource.com/article/19/1/how-use-magit

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 20 / 32

slide-21
SLIDE 21

Version control: git-timemachine

https://gitlab.com/pidu/git-timemachine

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 21 / 32

slide-22
SLIDE 22

Agenda: org-agenda

(setq org-agenda-files '("~/agenda/work/work.org" "~/agenda/todo/read.org" "~/agenda/todo/todo.org"))

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 22 / 32

slide-23
SLIDE 23

Agenda: org-agenda

(setq org-capture-templates '(("t" "Todo" entry (file+headline "~/agenda/todo/todo.org" "Tasks") "* TODO %i%?\n %U\n %a") ("n" "Notes" entry (file+headline "~/agenda/notes.org" "Notes") "* %A%?\n %U") ("i" "Insights" entry (file+headline "~/agenda/work/work.org" "Insights") "* %u%?")))

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 23 / 32

slide-24
SLIDE 24

Agenda: org-agenda

https: //gitlab.com/psachin/emacs.d/blob/master/mytime.org https://emacs.cafe/emacs/orgmode/gtd/2017/06/30/

  • rgmode-gtd.html

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 24 / 32

slide-25
SLIDE 25

The Diary file

Friday 20:10 to 20:30 Meeting with Rey 21:30 to 24:30 FSF IRC meeting

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 25 / 32

slide-26
SLIDE 26

Desktop Notification

https: //psachin.gitlab.io/emacs_diary_desktop_notification.html

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 26 / 32

slide-27
SLIDE 27

System

Man pages: M-x man Terminal: M-x eshell File browser: Dired mode grep: M-x grep

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 27 / 32

slide-28
SLIDE 28

Blogging: org-jekyll

https://orgmode.org/worg/org-tutorials/org-jekyll.html

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 28 / 32

slide-29
SLIDE 29
  • rg-publish

(require 'ox-publish) (setq org-publish-project-alist '( ;; ... add all the components here (see below)... )) https://orgmode.org/worg/org-tutorials/

  • rg-publish-html-tutorial.html

https://gitlab.com/psachin/psachin.gitlab.io/blob/ master/publish.el

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 29 / 32

slide-30
SLIDE 30

Games

M-x snake M-x tetris M-x doctor . . .

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 30 / 32

slide-31
SLIDE 31

Programming?

Support to all major programming languages Syntax coloring etc.

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 31 / 32

slide-32
SLIDE 32

Thank You

Questions? https://psachin.gitlab.io psachin@redhat.com Made with Love, GNU Emacs & Orgmode

Sachin Patil (psachin) (Red Hat) GNU Emacs for All EmacsConf 2019 32 / 32