Spacemacs a Distribution for GNU Emacs

Total Page:16

File Type:pdf, Size:1020Kb

Spacemacs a Distribution for GNU Emacs Spacemacs A Distribution for GNU Emacs <Emantor> 11. Dezember 2016 Installation Usage Configuration Was ist Spacemacs? • Eine Distribution für Emacs • …mit VIM Layer • …intuitiven Tastenkombinationen • …fertigen Konfigurationen für verschiedene Programmiersprachen 11. Dezember 2016 Emantor — Spacemacs 2 Installation Usage Configuration Installation • Emacs > 24.3 (Jessie: 24.4) • Git Auf der Kommandozeile: Lu-Tze:~% git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d Anschließend: Lu-Tze:~% emacs Dadurch werden alle Pakete automatisch installiert. 11. Dezember 2016 Emantor — Spacemacs 3 Installation Usage Configuration General • SPC ist der Leader Key, dahinter verstecken sich alle Kombinationen • z.B. SPC b -> buffer, SPC w -> window, SPC SPC -> Emacs execute command, … • Nach drücken der Taste erscheint ein Hilfefenster • Emacs execute command zeigt die Tastenkombination an • ESC verlässt alle Menüs DEMO 11. Dezember 2016 Emantor — Spacemacs 4 Installation Usage Configuration Hilfe • Alle Hilfefunktionen liegen unter SPC h • Hilfe für toggles, layer, … DEMO 11. Dezember 2016 Emantor — Spacemacs 5 Installation Usage Configuration Dateien öffnen • Klassisch mit :e <filename> • …über SPC f f (find-files) • …Projektbasiert über SPC p p (switch-project) • …mit locate über SPC f L (locate-file) • … DEMO 11. Dezember 2016 Emantor — Spacemacs 6 Installation Usage Configuration Windowmanagement • Klassisch über C-W (hjkl),v,s • …über SPC w (hjkl),/,- • …über SPC w . (window-transient-state) • Window-undo: SPC w u DEMO 11. Dezember 2016 Emantor — Spacemacs 7 Installation Usage Configuration Buffermanagement • Klassisch über :b • …über SPC b b • …über SPC b . (buffer-transient-state) DEMO 11. Dezember 2016 Emantor — Spacemacs 8 Installation Usage Configuration Zusätzlich: Layouts und workspaces • Erreichbar über SPC l (laout-transient-mode) • Speichern eine bestimmte Anordnung von Fenstern • haben zugeordnete Buffer • können projektbasiert zugeordnet werden (SPC p l) • workspaces sind untergeordnete layouts DEMO 11. Dezember 2016 Emantor — Spacemacs 9 Installation Usage Configuration Remote files • Tramp erlaubt es einfach über SCP/SSH auf entfernten Dateien zu arbeiten • Benutzung: :e /<computername>:<pfad> DEMO 11. Dezember 2016 Emantor — Spacemacs 10 Installation Usage Configuration General • SPC f e d zeigt die Konfigurationsdatei (Default: /.spacemacs) • Viele Optionen, Möglichkeit neue Layer/Pakete hinzuzufügen • Layer kapseln ganze Programmiersprachen/Funktionalitäten, z.B. C/C++, Python, Ruby, … • u.A. auto-complete, spell-check, email, IRC, … DEMO 11. Dezember 2016 Emantor — Spacemacs 11 Installation Usage Configuration Exkurs: Major/Minor-modes • Major-Mode – 1x für jeden Buffer – Beschreiben Programmiersprachen, Markdown-Syntax, … – Major-mode Keybindings sind unter SPC m oder , zu finden • Minor-Modes – “Addons” wie Autocompletion, Snippets, Auto-fill, … – Beliebig viele pro buffer aktivierbar DEMO 11. Dezember 2016 Emantor — Spacemacs 12 Installation Usage Configuration Layer hinzufügen • In der Variable dotspacemacs-configuration-layers • Eigene Layer in ~/.emacs.d/private ablegbar DEMO 11. Dezember 2016 Emantor — Spacemacs 13 Installation Usage Configuration Tastenbelegung • Konfigurierbar in dotspacemacs/user-config • SPC o und SPC m o (oder ,) sind frei belegbar • Zuordnung über spacemacs/set-leader-keys DEMO 11. Dezember 2016 Emantor — Spacemacs 14 Installation Usage Configuration Fazit • Spacemacs sehr gut einsetzbar auf dem eigenen Rechner • Remotefunktionalität ersetzt VIM auf entfernten Rechnern • aber für Fälle in denen dies nicht geht Fallback auf VIM 11. Dezember 2016 Emantor — Spacemacs 15 Installation Usage Configuration Fazit Fragen? 11. Dezember 2016 Emantor — Spacemacs 16.
Recommended publications
  • Text Editors for Programmers
    Text Editors for Programmers Dr. Prasad Kulkarni Michael Jantz Jamie Robinson 1 Real Programmers 2 vim • Based on vi – vi written in 1976 and has become standard on Unix machines • Basic design principles: – Retains each permutation of typed keys to resolve commands – Smaller and faster editor ± but with less capacity for customization – Uses distinct editing ªmodesº 3 Using Vim on a Simple Example • You should have received two source files (simple.c and simple.h), a Makefile, and a dot_vimrc file from the lab website. – Save dot_vimrc as .vimrc in your home directory – Use mv to rename the file • mv dot_vimrc ~/.vimrc • “dot_vimrc” – A collection of vim commands run each time you start vim – Used to set mappings / options that are not otherwise set by default. 4 Using Vim to Create & Edit a File • Start a session – vim simple.c • Press 'i' to enter insert mode – Now type any text you want • 'Esc' to enter command mode – ':wq' to write changes and exit the session 5 Vim – Modes of Operation • Command Mode • Input Mode • Visual Mode V, v, ctrl - v Command Visual Escape Escape I, i, A, a, O, o, R, r Input 6 Essential Commands • :e file – Edit file in a new buffer • :w – Save any modifications to the current buffer. • :q – Quit Vim. If you have modifications you do not want to save, use :q! • u, <c-r> – Undo, redo 7 Command Mode: Navigation • Reopen simple.c – Use j, k, l, and h to navigate around the file as shown. This may take awhile get used to, but is very nice once you have it down.
    [Show full text]
  • Flycheck Release 32-Cvs
    Flycheck Release 32-cvs Aug 25, 2021 Contents 1 Try out 3 2 The User Guide 5 2.1 Installation................................................5 2.2 Quickstart................................................7 2.3 Troubleshooting.............................................8 2.4 Check buffers............................................... 12 2.5 Syntax checkers............................................. 14 2.6 See errors in buffers........................................... 18 2.7 List all errors............................................... 22 2.8 Interact with errors............................................ 24 2.9 Flycheck versus Flymake........................................ 27 3 The Community Guide 33 3.1 Flycheck Code of Conduct........................................ 33 3.2 Recommended extensions........................................ 34 3.3 Get help................................................. 37 3.4 People.................................................. 37 4 The Developer Guide 45 4.1 Developer’s Guide............................................ 45 5 The Contributor Guide 51 5.1 Contributor’s Guide........................................... 51 5.2 Style Guide................................................ 54 5.3 Maintainer’s Guide............................................ 57 6 Indices and Tables 63 6.1 Supported Languages.......................................... 63 6.2 Glossary................................................. 85 6.3 Changes................................................. 85 7 Licensing 93 7.1 Flycheck
    [Show full text]
  • Spacemacs for Vim Users
    Spacemacs for Vim users Pradeep Gowda August 02, 2016 @VimIndy Slides - https://www.btbytes.com/talks/spacemacs-2016-08/ About me vim user for 10+ years "Journeyman" user vi or plain vim when I have to no plugins quick edits and remote shells "vim when I have to, Emacs when I can" What about emacs? ...<insert favourite emacs joke(s)>... One language to configure and extend the editor Modal editing Emacs -- non-modal editing by default evil mode -- extensible vi layer for Emacs god mode Emacs configurations configuring emacs -- a favourite yak to shave My own -- https://www.btbytes.com/source/intentional_emacs/tree/ http://aaronbedra.com/emacs.d/ (first google hit, *org-mode) http://pages.sachachua.com/.emacs.d/Sacha.html (this week in emacs, *org-mode) More complete "distributions" -- batsov's Prelude spacemacs spacemacs spacemacs - evil + god modes A community-driven Emacs distribution Credo -- The best editor is neither Emacs nor Vim, it's Emacs and Vim! Installation https://github.com/syl20bnr/spacemacs git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d launch emacs demo Shortcuts SPC f e d -- edit config SPC f e R -- reload config SPC h d f -- describe fn SPC h d v -- describe variable SPC h d k -- describe key SPC f f -- fuzzy find files SPC f t -- neotree SPC w - -- split windows horizontal SPC w / -- split windows vertically What I like sensible set of defaults can use either key-bindings. sometimes modal-editing is nicer fast "leader key" is easy on the hands Package highlights disclaimer: i'm not a "power" user of editors avy like vim's easymotion powerline magit (git integration) neotree like nerdtree projectile [project management].
    [Show full text]
  • Panduan Dasar Emacs Untuk Pemula
    Tentang Buku Ini Buku ini adalah pengantar pengoperasian program komputer GNU Emacs untuk pemula dalam bentuk ringkas. Buku ini adalah kumpulan dari 4 artikel bertopik Emacs di situs Linuxku.com. Buku ini diterbitkan dalam bentuk ebook, berlisensi CC BY-SA, dan bisa diunduh secara daring di www.linuxku.com. Buku ini disusun sedemikian rupa agar mudah dicetak sendiri oleh pembaca. Semoga dengan hadirnya buku ini, pembaca di Indonesia bertambah pengetahuan & keterampilan mengoperasikan free software1 di komputernya masing-masing. Detail Buku • Judul: Panduan Dasar Emacs untuk Pemula • Penulis: Ade Malsasa Akbar • Penerbit: www.linuxku.com • Lisensi: Creative Commons Attribution-ShareAlike 3.0 https://creativecommons.org/licenses/by-sa/3.0/ • Jumlah halaman: 35 • Tingkat kesulitan: pemula • Sumber artikel: (1) http://www.linuxku.com/2017/10/panduan-dasar-emacs-untuk- pemula-bagian-1.html (2) http://www.linuxku.com/2017/10/panduan-dasar- emacs-untuk-pemula-bagian-2.html (3) http://www.linuxku.com/2017/11/panduan- dasar-emacs-untuk-pemula-bagian-3.html (4) http://www.linuxku.com/2017/11/panduan-dasar-emacs-untuk-pemula-bagian- 4.html • Disusun dengan: LibreOffice Writer 5.1, Abrowser 50, Pluma 1.12, dan Inkscape 0.91 di atas Trisquel 8.0 GNU/Linux 1 https://www.gnu.org/philosophy/free-sw.html 2 Bagian 1 Tulisan ini untuk Anda yang ingin mencoba Emacs. Anda diharapkan sudah sering memakai penyunting teks lain seperti LibreOffice atau Eclipse sehingga tidak kaget dengan Emacs. Pada Bagian 1 ini, Anda akan belajar apa itu Emacs, apa keunggulannya, alamat unduhannya, dan bagaimana dasar pengoperasiannya, terutama cara menerapkan kunci pintas seperti 'C-x C-f'.
    [Show full text]
  • Tales of Editors & Keyboards
    Tales Of Editors & Keyboards A Personal Introduction To Vim & Emacs Adrian Kosmaczewski Version 1.0.4, 2018-11-23 Table of Contents Dedication . 1 Preface . 2 Book Structure . 6 Requirements . 7 Music. 8 Act I: Andante . 9 1. Overture Cotton Avenue . 10 2. Mysterious Ways . 16 3. I Think I’m Paranoid . 19 4. Close To The Edge . 20 5. Protection . 24 6. Ticket To Ride . 25 7. I Like To Move It . 26 8. The Power Of Love . 28 Act II: Crescendo . 30 9. Are You Gonna Go My Way . 31 10. Hyper-Gamma Spaces . 33 11. The Great Escape . 35 12. No Line On The Horizon . 37 13. The First Cut Is The Deepest . 38 14. Yuri Writes A Poem For Lara . 41 15. Letter From Home. 44 16. Queremos Pastel . 45 17. Piano Bar . 46 18. Allegro Ma Non Tanto. 49 19. Everything Counts . 51 20. La Grasa De Las Capitales . 53 21. I Want You (She’s So Heavy) . 55 22. The Wall . 57 23. The Distance . 58 24. True Colors . 60 25. My Culture. 62 26. Give Out But Don’t Give Up . 65 27. Break & Enter . 66 Act III: Accelerando . 67 28. Packt Like Sardines In A Crushd Tin Box . 68 29. Get A Grip . 70 30. Find My Baby . 72 31. Nouveau Western . 73 32. Bedshaped . 76 33. Changes . 77 34. 19 Dias Y 500 Noches . 80 35. You Learn . 82 36. Future Is Promises. 83 37. A Remark You Made . 86 38. Shape Of My Heart . 88 39. One Tree Hill. 89 40.
    [Show full text]
  • Emacs Pour L'impatient
    Emacs pour l’impatient Février 2020 Emacs en quelques mots Emacs est un éditeur de texte, voire un sys d’exploitation part en diront certains. Des débats enflammés ont lieu régulièrement entre les partisans d’Emacs et ceux de Vi(m), un autre éditeur Unix versatile, tout comme on retrouve des discussions sans fin sur l’usage des taquets de tabulation ou des espaces pour l’indentation des blocs en Python. Et bien sûr, Richard Stallman, adossé à la FSF, n’est jamais bien loin lorsque l’on évoque le logiciel Emacs, même si pour l’essentiel la maintenance et le développement d’Emacs est réalisé par un groupe de volontaires bénévoles. I spend most of my time editing in Emacs. I read and send mail with Emacs using M-x rmail and C-x m. I have no experience with any other email client programs. In principle I would be glad to know about other free email clients, but learning about them is not a priority for me and I don’t have time. — Richard Stallman, How I do my computing Ceci étant, l’objet de ce document n’est pas d’arguer pour ou contre l’usage de Emacs pour réaliser des tâches plus ou moins complexes. Il n’est pas non plus question de fournir un manuel détaillé concernant l’utilisation d’Emacs et les milles et quelques raccourcis clavier dont dispose Emacs dans sa configuration de base. Pour cela, il est possible de consulter la documentation officielle, les ouvrages publiés chez O’Reilly, par exemple Learning GNU Emacs, ou les nombreux liens que l’on trouve sur internet : Mastering Emacs ou Practical Emacs Tutorial; Org Mode - Organize Your Life In Plain Text! et Emacs org-mode examples and cookbook pour le mode org plus spécifiquement.
    [Show full text]
  • Emacs, the Ultimate
    EMACS, THE ULTIMATE Trung Ta Oracle Labs Australia & National University of Singapore Brisbane, Australia – August 9th, 2017 Which editor do you use the most? https://xkcd.com/378/ CASE STUDY: REAL PROGRAMMERS CASE STUDY: REAL PROGRAMMERS https://xkcd.com/378/ M-x butterfly Outline 1 Emacs, the basic 2 Emacs, the advance 3 Emacs, the ultimate 4 Getting started 5 Conclusion 5 • The first time I give an Emacs talk A few notes • The talk title is borrowed from: lambda-the-ultimate.org • Introduce what I know that Emacs can do • Many things that I don’t know or haven’t got chances to use • No intention to compare Emacs with other editors/IDEs 6 A few notes • The talk title is borrowed from: lambda-the-ultimate.org • Introduce what I know that Emacs can do • Many things that I don’t know or haven’t got chances to use • No intention to compare Emacs with other editors/IDEs • The first time I give an Emacs talk 6 Emacs, the basic 7 How do we interact with editor? 8 How do we interact with editor? 8 How do we interact with editor? 8 • Frequently moving hand between keyboard & mouse • Frequently moving palm around keyboard keys • Not using convenient editing features I Use ; !; "; # keys instead of Home, End, PageUp, PageDown I Use an editor with few convenient editing features ) Emacs helps to avoid these problems! How can we edit text unproductively? 9 • Frequently moving palm around keyboard keys • Not using convenient editing features I Use ; !; "; # keys instead of Home, End, PageUp, PageDown I Use an editor with few convenient editing features
    [Show full text]
  • Emacs Table of Contents
    emacs #emacs Table of Contents About 1 Chapter 1: Getting started with emacs 2 Remarks 2 Versions 2 Examples 3 Installation or Setup 3 Debian systems 3 Build for source 3 Redhat systems 4 Arch Linux 4 Gentoo and Funtoo 4 GSRC (GNU Source Release Collection) 4 Darwin systems 4 Homebrew 5 MacPorts 5 pkgsrc 5 App Bundle 5 Windows 5 Chocolatey package manager 5 Scoop package manager 5 Official Binary Installers 5 Other Binary Installers 6 Interactive Emacs Tutorial 6 Emacs Rocks Video Tutorials 6 Chapter 2: Basic Keybindings 9 Examples 9 Quit Emacs 9 Suspend Emacs 9 File handling 9 Abort current command 9 Multiples windows or frames 10 Buffers 10 Search and Replace 12 Region - Cut, Copy, Paste 12 Kill 13 Select and cut (kill) 13 Yank 13 Yank text killed previously 13 Cursor (point) movement 14 Undo 14 Case 15 Key bindings notation 15 Key chords 15 Key sequences 15 Using ESC instead of Alt 15 Describing key bindings in Emacs lisp files 16 Chapter 3: emacs has already very high quality, well organized documentation. why duplicat 17 Introduction 17 Examples 17 Keys 17 Chapter 4: Emacs nomenclature 18 Examples 18 Files and buffers 18 Elements of the User Interface 18 Frame 18 Window 18 Buffer 19 Mode line 19 Tool Bar 19 Minibuffer 19 Point, mark and region 19 Killing and yanking 20 Killing 20 Yanking 20 Modes 20 Major mode 20 Minor mode 20 Chapter 5: Helm 22 Examples 22 Installing helm via MELPA 22 Chapter 6: Help Within Emacs 25 Remarks 25 Examples 25 Emacs Tutorial 25 Available Functions and Key Bindings 25 Key Binding Documentation 25 Function
    [Show full text]
  • Os X Text Editor
    Os X Text Editor Asclepiadean Georg bat injunctively. Tonnie skirmishes compatibly while volitant Thain yammer betwixt or hack lanceolately. Dreamed Zacharias gumshoe widdershins, he soft-pedal his Weston-super-Mare very week. It helps you focused on this website in the os x text editor with Best Text Editor for Mac in 2020 Unbiased Reviews. Chocolat is find text editor app for Mac OS X that combines native Cocoa with row text editing tools. Type literal Text Editors for the Mac The Mac Security Blog. Best Coding Editors for Mac OS Free Coding Software for. For Mac users who is plain text FoldingText is the markdown text editor with productivity features Unlike other editors FoldingText does outlining todo lists. Auto complete temple of brackets and quotes like a code editor Also There's also an key to auto. 12 best Text Editors For Mac 1 Atom editor 2 sublime text 3 3 Brackets 4 Visual Studio Code 5 Macvim 7 Spacemacs TextWrangler. Mac Text Editor UltraEdit. Say no longer includes special effects to dive: data among multiple clips specific language not, os x system resources than standard os x are. Trans-Tex Software Makers of pride award-winning Mac shareware program Tex-Edit. Objective truth how to choose a text editor that best suits your needs. The department Text Editing Tools for Mac OS 1 Brackets Brackets is guilt free lightweight text editor created by Adobe which select one of authority most reliable. Mac terminal text editor Michiana Hematology Oncology. CotEditor is a lightweight plain-text editor for macOS GitHub.
    [Show full text]
  • Original File
    Contents 1 Introduction 2 1.1 Text Editors and IDE’s . 2 1.2 The learning curve . 3 2 Some Emacs Fu 3 2.1 Emacs keybindings . 3 2.2 The dotfile . 4 2.3 Adding Packages . 4 2.4 Fun Games . 5 2.5 Introspection and extensibility . 5 3 Spacemacs 5 3.1 Installing . 5 3.2 Spacemacs specific binding . 5 3.3 Packages and layers . 6 4 IDE Features 6 4.1 Syntax Highlighting/Checking . 7 4.2 Autocompletion . 7 4.3 Snippets/Templates . 7 4.4 Refactoring . 7 4.5 Version Control . 7 4.6 Project Management . 7 4.7 Debugging . 7 4.8 Navigaton . 7 4.9 Compilation . 7 4.10 Multi Language . 7 4.11 Intuitive . 7 5 Other Useful Stuff 7 5.1 Languages/Unicode Support . 7 5.2 Org Mode . 7 5.3 Spell Check . 8 5.4 IRC (erc) . 8 5.5 Web Browsing . 8 5.6 Avy . 8 5.7 Eshell . 8 5.8 Undo tree . 8 1 5.9 Grepping . 8 5.10 Man/Info Pages . 8 5.11 Tramp . 8 5.12 Elisp . 8 1 Introduction This is a talk for programmers as well as non-programmers who don’t use emacs as their integrated development environment (IDE) or text editor. This is also for those who say "Wait a minute, emacs isn’t an IDE, its just a text editor". Emacs, when combined with a n*nix system, is in fact the original IDE and remains the best choice for programmers everywhere. Not only can it match all the features you may currently enjoy in Eclipse, JetBrains products, vIsUaL sTuDiO, etc, but it offers more efficient tools that are easier to setup for programming and typing.
    [Show full text]
  • Magit User Manual for Version 2.13.0
    Magit User Manual for version 2.13.0 Jonas Bernoulli Copyright (C) 2015-2018 Jonas Bernoulli <[email protected]> You can redistribute this document and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This document is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABIL- ITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. i Table of Contents 1 Introduction ::::::::::::::::::::::::::::::::::::: 1 2 Installation::::::::::::::::::::::::::::::::::::::: 3 2.1 Installing from an Elpa Archive ::::::::::::::::::::::::::::::::: 3 2.2 Installing from the Git Repository :::::::::::::::::::::::::::::: 3 2.3 Post-Installation Tasks ::::::::::::::::::::::::::::::::::::::::: 4 3 Getting Started:::::::::::::::::::::::::::::::::: 6 4 Interface Concepts :::::::::::::::::::::::::::::: 8 4.1 Modes and Buffers:::::::::::::::::::::::::::::::::::::::::::::: 8 4.1.1 Switching Buffers :::::::::::::::::::::::::::::::::::::::::: 8 4.1.2 Naming Buffers ::::::::::::::::::::::::::::::::::::::::::: 10 4.1.3 Quitting Windows :::::::::::::::::::::::::::::::::::::::: 11 4.1.4 Automatic Refreshing of Magit Buffers :::::::::::::::::::: 11 4.1.5 Automatic Saving of File-Visiting Buffers ::::::::::::::::: 12 4.1.6 Automatic Reverting of File-Visiting Buffers :::::::::::::: 12 Risk of Reverting Automatically ::::::::::::::::::::::::::::::
    [Show full text]
  • Word Processing Applications for Linux
    Word Processing Applications For Linux Spectrometric or discalced, Hanford never explant any scalenohedron! Cal revivified her barbascos heavily, anthropological and unquenchable. Epenthetic Kingston hasp somewhat or obtrudings profligately when Clayton is confusing. As soon as well, for gnu general features a primary userland used for linux mint, a useful is a letter check of time that the package The validation is possible to deal with microsoft products including docx format of filtering on your activities developed as a new ones in. Text Editors Moving From Windows To Linux Charles River. Source Word Processors Software at SourceForge Free limit and important Word Processors Software downloads from the largest Open Source applications and. Home LibreOffice Free software Suite Based on OpenOffice. Linux distros for most portable option to clients and pipes to web page and for. Word processors Uses compressed XML as though native document file format Prints to PDF doesn't actually work Stores files in Microsoft Office. As a scripting language that you run faster. The casual Word Processing App for Windows Lifehacker. You can also called text you could not effect on an open source applications are out for creating documents. KImage an image viewingprocessing application KImageShop a random-based image creation application Features KWord is KDE2's answer to Microsoft Word. Microsoft's first Office app arrives on Linux The Verge. Their first application under development is single word processor AbiWord AbiSource is betting 100 of it future on Open Source One took the. Microsoft Word running a writing app that helps you to transform documents into web pages.
    [Show full text]