├── LICENSE ├── README.md └── dot-emacs /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2017 Jacob Levernier 2 | 3 | Please see the header of the file '.emacs' in this repository for a full rationale of this license decision. 4 | 5 | ---------------------------------------------- 6 | 7 | GNU GENERAL PUBLIC LICENSE 8 | 9 | Version 3, 29 June 2007 10 | 11 | Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. 12 | Preamble 13 | 14 | The GNU General Public License is a free, copyleft license for software and other kinds of works. 15 | 16 | The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. 17 | 18 | When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. 19 | 20 | To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. 21 | 22 | For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. 23 | 24 | Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. 25 | 26 | For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. 27 | 28 | Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. 29 | 30 | Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. 31 | 32 | The precise terms and conditions for copying, distribution and modification follow. 33 | TERMS AND CONDITIONS 34 | 0. Definitions. 35 | 36 | “This License” refers to version 3 of the GNU General Public License. 37 | 38 | “Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. 39 | 40 | “The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations. 41 | 42 | To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work. 43 | 44 | A “covered work” means either the unmodified Program or a work based on the Program. 45 | 46 | To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. 47 | 48 | To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. 49 | 50 | An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 51 | 1. Source Code. 52 | 53 | The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work. 54 | 55 | A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. 56 | 57 | The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. 58 | 59 | The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. 60 | 61 | The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. 62 | 63 | The Corresponding Source for a work in source code form is that same work. 64 | 2. Basic Permissions. 65 | 66 | All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. 67 | 68 | You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. 69 | 70 | Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 71 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 72 | 73 | No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. 74 | 75 | When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 76 | 4. Conveying Verbatim Copies. 77 | 78 | You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. 79 | 80 | You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 81 | 5. Conveying Modified Source Versions. 82 | 83 | You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: 84 | 85 | a) The work must carry prominent notices stating that you modified it, and giving a relevant date. 86 | b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”. 87 | c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. 88 | d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. 89 | 90 | A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 91 | 6. Conveying Non-Source Forms. 92 | 93 | You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: 94 | 95 | a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. 96 | b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. 97 | c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. 98 | d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. 99 | e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. 100 | 101 | A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. 102 | 103 | A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. 104 | 105 | “Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. 106 | 107 | If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). 108 | 109 | The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. 110 | 111 | Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 112 | 7. Additional Terms. 113 | 114 | “Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. 115 | 116 | When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. 117 | 118 | Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: 119 | 120 | a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or 121 | b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or 122 | c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or 123 | d) Limiting the use for publicity purposes of names of licensors or authors of the material; or 124 | e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or 125 | f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. 126 | 127 | All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. 128 | 129 | If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. 130 | 131 | Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 132 | 8. Termination. 133 | 134 | You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). 135 | 136 | However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. 137 | 138 | Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. 139 | 140 | Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 141 | 9. Acceptance Not Required for Having Copies. 142 | 143 | You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 144 | 10. Automatic Licensing of Downstream Recipients. 145 | 146 | Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. 147 | 148 | An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. 149 | 150 | You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 151 | 11. Patents. 152 | 153 | A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”. 154 | 155 | A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. 156 | 157 | Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. 158 | 159 | In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. 160 | 161 | If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. 162 | 163 | If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. 164 | 165 | A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. 166 | 167 | Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 168 | 12. No Surrender of Others' Freedom. 169 | 170 | If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 171 | 13. Use with the GNU Affero General Public License. 172 | 173 | Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 174 | 14. Revised Versions of this License. 175 | 176 | The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. 177 | 178 | Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. 179 | 180 | If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. 181 | 182 | Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 183 | 15. Disclaimer of Warranty. 184 | 185 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 186 | 16. Limitation of Liability. 187 | 188 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 189 | 17. Interpretation of Sections 15 and 16. 190 | 191 | If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. 192 | 193 | END OF TERMS AND CONDITIONS 194 | How to Apply These Terms to Your New Programs 195 | 196 | If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. 197 | 198 | To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found. 199 | 200 | 201 | Copyright (C) 202 | 203 | This program is free software: you can redistribute it and/or modify 204 | it under the terms of the GNU General Public License as published by 205 | the Free Software Foundation, either version 3 of the License, or 206 | (at your option) any later version. 207 | 208 | This program is distributed in the hope that it will be useful, 209 | but WITHOUT ANY WARRANTY; without even the implied warranty of 210 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 211 | GNU General Public License for more details. 212 | 213 | You should have received a copy of the GNU General Public License 214 | along with this program. If not, see . 215 | 216 | Also add information on how to contact you by electronic and paper mail. 217 | 218 | If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: 219 | 220 | Copyright (C) 221 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 222 | This is free software, and you are welcome to redistribute it 223 | under certain conditions; type `show c' for details. 224 | 225 | The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”. 226 | 227 | You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . 228 | 229 | The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . 230 | 231 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # "Emacs `org-mode` for the Laity" configuration 2 | 3 | ## What is this? 4 | 5 | This configuration file causes Emacs to behave more like a "normal" text editor (with familiar keybindings [i.e., keyboard shortcuts] such as `C-c` for copy, `C-v` for paste, `C-z` for undo and `C-S-z` for redo, etc.). It thus allows users who have never interacted with Emacs but who want to use `org-mode` to do so. 6 | 7 | ### "This is an abomination! People who use Emacs need to learn all of its functionality and default keybindings!" 8 | 9 | When I use Emacs, I use `evil-mode`, making Emacs work more like Vim. What the configuration file in this repository does is philosophically no different. In my mind, Emacs is a wonderful *platform* for doing text editing. Its configurability means that the *interface* for working with that platform can adapt to the people using it, whether by making it act more like Vim or like Notepad++. 10 | 11 | ### "Won't this teach people bad habits about using Emacs? People won't be able to sit down at a clean Emacs installation on someone else's computer and use it." 12 | 13 | Given Emacs' complexity, users adapt and learn new functionality based on the needs of the work they're doing at the time. That's how we learn, yes? -- by incrementally adding to our knowledge given a specific problem in a specific context. With this in mind, I suspect that users of this configuration file will learn new habits as they need to. If this configuration file helps users start using Emacs where they wouldn't have otherwise, and if Emacs is a useful tool for them given they work they're doing, I consider that a positive outcome, regardless of how "clean" the experience is. 14 | 15 | ### What do you mean by "laity"? 16 | 17 | From [Oxford Living Dictionaries](https://en.oxforddictionaries.com/definition/laity "Oxford Living Dictionaries: 'laity'"): "Ordinary people, as distinct from professionals or experts." By this, I just mean people who don't have expert-level experience with *Emacs* specifically -- that is, users who have never worked with it before. 18 | 19 | ## Usage 20 | 21 | ### One-time initial setup 22 | 23 | 1. Install Emacs (preferably **version 25.1 or higher**): 24 | * For Linux, though your distribution's package manager 25 | * For OSX, from [Emacs for Mac OSX](https://emacsformacosx.com/ "Installer for Emacs for Mac OSX") 26 | * For Windows, from the [GNU Project](https://www.gnu.org/software/emacs/download.html#windows "Installer for Emacs for Windows") 27 | * Click "main GNU FTP server" 28 | * Select the Emacs version with the highest version number. You'll probably want the version that includes "x86" in its name (For example, `emacs-25.1-x86_64-w64-mingw32.zip`) 29 | * Download the `.zip` file, and unpack it into any directory on your computer. 30 | * Go into the unzipped folder, go into the `bin` directory, and double-click on `runemacs`. 31 | * If you see a security warning, click "Run". 32 | * Emacs on Windows doesn't require you to install anything. Just double-click that `runemacs` program when you want to load Emacs. 33 | 1. Save the contents of the `dotemacs` file from this repository to the location where Emacs will look for it whenever Emacs is launched: 34 | 1. Open Emacs. 35 | 1. In Emacs, press the "`Meta`" key (usually the "`Alt`" key on your keyboard) at the same time as "`:`". For most keyboards in the USA, this means that you will be pressing `Alt + Shift + ;`. 36 | You'll know that you pressed the correct keys if the bottom of the Emacs window says `Eval: `. 37 | 1. In the `Eval: ` textbox at the bottom of the Emacs window, type the following (including the parentheses): `(find-file user-init-file)`. Press `Enter` on your keyboard. 38 | This command tells Emacs to open its configuration file, wherever on your computer it is (its location depends on what Operating System you're using). 39 | 1. In your web browser, go to the content of the `dotemacs` file from this repository, by [clicking here](https://raw.githubusercontent.com/publicus/emacs-org-mode-for-the-laity/master/dot-emacs "dotemacs raw content"). 40 | 1. Select all of the text from the `dotemacs` file, and copy it to your clipboard). 41 | 1. Go back to Emacs. Click `Edit -> Paste` to paste the contents from `dotemacs` into the window (Use the point-and-click menu within Emacs for now; by default, Emacs uses different keyboard commands than other programs, so the typical `Control + v` or `Command + v` keyboard shortcut for "Paste" will not work in it at first). 42 | 1. Close Emacs. 43 | 1. Install add-ons ("packages") for Emacs: 44 | 1. Re-open Emacs. 45 | 1. If Emacs can see the `.emacs` file you moved in the step above, it should ask you whether you would like to install a series of add-ons (if you are running Emacs lower than version 25.1, it will just start installing the packages), if it didn't already at some point above. You'll see some text (and may see some "Warnings") appear in the Emacs window. 46 | 1. Once the installation is finished, close emacs again. 47 | 1. Tell Emacs where you plan to store your .org files: 48 | 1. Open Emacs again. Run the `Meta + :` keyboard command again, and, like above, type the following (including the parentheses): `(find-file user-init-file)`. Press `Enter` on your keyboard. 49 | 1. Type `Control + F` on your keyboard to search the file, and type `agenda` (to search for the word "agenda"). Find the code chunk that starts with the line `(setq org-agenda-files (quote (`. Replace the lines below that ("`~/Daily_Logs`", "`~/Primary_Syncing_Folder/Documents/todo`") with the folder(s) where you plan to keep the files you want to use with `org-mode` (On Macs and Linux, `~` means your Home directory). 50 | 1. Close Emacs 51 | 1. Re-open Emacs one more time to let the changes take full effect. 52 | 1. If all goes well, when you open Emacs, you should be greeted with some helpful text about org-mode. 53 | 54 | ### Advanced users: One method for trying this configuration file quickly 55 | 56 | For advanced users who already have an Emacs configuration and want to temporarily try the configuration file from this repository, running the following in the system's Terminal (for OSX or Linux, or in Cygwin or the Linux Shell in Windows) can be useful: 57 | 58 | ``` 59 | mkdir --parents /tmp/emacs-home 60 | ln --symbolic --force /absolute/path/to/emacs-org-mode-for-the-laity/dot-emacs /tmp/emacs-home/.emacs 61 | HOME=/tmp/emacs-home 62 | emacs 63 | ``` 64 | 65 | `/absolute/path/to/emacs-org-mode-for-the-laity/dot-emacs` should be changed to wherever the `dot-emacs` file from this repository is located on your computer. 66 | 67 | This creates a new directory at `/tmp/emacs-home`, creates a link from the location of this repository on your computer to that new directory, temporarily tells the terminal that that new directory is your Home directory, and starts Emacs. 68 | 69 | ## Changelog 70 | 71 | ### 2017-07-11 72 | 73 | - Added `C-t` keybinding for buffer menu 74 | - Configured `tabbar-mode` to set all tabs as part of one group 75 | - Customized the look of the tabbar. 76 | 77 | ### 2017-07-05 78 | 79 | Implemented the following ideas, many of which were from [suggestions by @shaund](https://github.com/publicus/emacs-org-mode-for-the-laity/issues/1 "Issue #1"). 80 | 81 | - Add `(prefer-coding-system 'utf-8)` to avoid a package installation error; similarly, remove `melpa-stable` from the list of repositories (`melpa` is still listed) 82 | - Change the keyboard command for moving between emacs sub-windows to `C-S-M` (i.e., `Control-Shift-Meta-ArrowKey`, meaning usually `Control-Shift-Alt-ArrowKey`) 83 | - Turn on `org-indent` mode 84 | - Turn on `tabbar` mode, to create a web-browser-like tab-bar on the top of the window with open buffers. 85 | - Add `Control-mousewheel` zooming 86 | - Bind `Control-y` to `redo`, alongside `Control-Shift-z` 87 | - Make `Shift-click` highlight text rather than open a menu 88 | - Enforce Todo dependencies 89 | - Add NeoTree for a file browser sidebar (with F8 keybinding) 90 | 91 | ### 2017-03-07 92 | 93 | Initial posting/release! -------------------------------------------------------------------------------- /dot-emacs: -------------------------------------------------------------------------------- 1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2 | ;; Title: .emacs configuration for people who don't normally use Emacs, but still want to use org-mode. 3 | ;; Author: Jacob Levernier (except when otherwise noted) 4 | ;; Date: 2017-06-30 5 | ;; License: GPLv3 6 | ;; License rationale: 7 | ;; If you remove the code block that beings with "Code block from http://stackoverflow.com/a/36707038" and ends with "End of code block from http://stackoverflow.com/a/36707038", you may consider this released under The 3-Clause BSD License, copyright Jacob Levernier, 2017. 8 | ;; The above-mentioned code block is from Stack Exchange, which requires CC-BY-SA licensing. In order to be in compliance with this license, I'm also considering the code in this file overall GPLv3 licensed, because CC-BY-SA to GPLv3 license compatibility is approved by Creative Commons (https://creativecommons.org/share-your-work/licensing-considerations/compatible-licenses/). 9 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 10 | 11 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 12 | ;; Set up the package manager, so that org-mode is available and packages can be easily downloaded and installed from the melpa repository 13 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 14 | 15 | (prefer-coding-system 'utf-8) 16 | 17 | (require 'package) 18 | 19 | (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/")) 20 | (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/")) 21 | 22 | (setq package-enable-at-startup nil) 23 | (package-initialize) ;; Load packages 24 | 25 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 26 | ;; End package manager setup 27 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 28 | 29 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 30 | ;; Refresh the list of packages 31 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 32 | 33 | (unless package-archive-contents 34 | (package-refresh-contents)) 35 | 36 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 37 | ;; End refresh the list of packages 38 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 39 | 40 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 41 | ;; Easily list packages in this one central place. You'll be asked automatically whether you'd like to install any packages in this list that aren't currently installed the next time you start Emacs 42 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 43 | 44 | (setq package-selected-packages 45 | (quote 46 | ( 47 | flycheck ;; For Syntax checking 48 | powerline 49 | solarized-theme ;; This can then be activated with M-x load-theme 50 | markdown-mode 51 | markdown-mode+ 52 | ;;darkroom ;; Seems to be missing from Melpa as of 2017-07-12, and so is commented out for now. 53 | ivy ;; For a dashboard 54 | ;;scroll-restore ;; For allowing scrolling without moving the cursor once it goes off-screen. 55 | org-repo-todo ;; For todo functionality within a repo. 56 | org-journal ;; An org-mode-based journal 57 | undo-tree 58 | tabbar 59 | neotree 60 | ))) 61 | 62 | (if (version< emacs-version "25.1") 63 | (progn 64 | (message "Emacs version is below 25.1") 65 | 66 | ;; Install any missing packages: 67 | 68 | (dolist (package-name package-selected-packages) 69 | (when (not (package-installed-p package-name)) 70 | (package-install package-name))) 71 | ) 72 | (progn 73 | (message "Emacs version is 25.1 or above.") 74 | 75 | ;; Install any missing packages that are listed in the package-selected-packages variable below. (This is a feature introduced in Emacs 25.1). See, e.g., http://stackoverflow.com/a/39891192 76 | (package-install-selected-packages) 77 | )) 78 | 79 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 80 | ;; End of package list to automatically install 81 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 82 | 83 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 84 | ;; Enable other settings for making Emacs' interface easier to use 85 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 86 | 87 | ;;;;;;;;;;;;;;; 88 | ;; NeoTree (a file browser) 89 | ;;;;;;;;;;;;;;; 90 | 91 | (global-set-key [f8] 'neotree-toggle) 92 | 93 | ;;;;;;;;;;;;;;; 94 | ;; Ivy-mode 95 | ;;;;;;;;;;;;;;; 96 | 97 | (ivy-mode 1) ;; Enable ivy-mode, which makes menus in Emacs nicer-looking and searchable. 98 | 99 | ;;;;;;;;;;;;;;; 100 | ;; TabBar-mode 101 | ;;;;;;;;;;;;;;; 102 | 103 | ;; NOTE: To customize the way that the tabbar looks, I recommend making edits through the emacs GUI by using 'M-x customize-group', then selecting 'tabbar', then pressing . 104 | 105 | (tabbar-mode 1) ;; Enable tabbar-mode, which makes a browser-style tab bar if available buffers appear at the top of the window. 106 | 107 | ;; Put all tabs into one group, following https://www.emacswiki.org/emacs/TabBarMode 108 | (setq tabbar-buffer-groups-function 109 | (lambda () 110 | (list "All"))) 111 | 112 | (global-set-key (kbd "C-t") 'ivy-switch-buffer) ;; Set the keybinding Ctrl+t (like "new tab" in some editors and web browers) to bring up the buffer list. 113 | 114 | ;;;;;;;;;;;;;;; 115 | ;; Scroll-restore-mode (for saving your place when you scroll with your mouse) 116 | ;;;;;;;;;;;;;;; 117 | 118 | ;; These are commented out because scroll-restore causes an error with org-emphasize: "Error in post-command-hook (scroll-restore-post-command)..." 119 | 120 | ;;(scroll-restore-mode 1) ;; Change to nil to disable, and 1 to enable, scroll-restore mode by default 121 | ;;(global-set-key (kbd "C-x j") 'scroll-restore-jump-back) ;; Set a keybinding for jumping back when scrolling. 122 | 123 | ;;;;;;;;;;;;;;; 124 | ;; Load the Darkroom package (useful for writing prose -- it brings in the margins of the interface to offer less distraction when writing) 125 | ;;;;;;;;;;;;;;; 126 | 127 | ;;(require 'darkroom) ;; Seems to be missing from Melpa as of 2017-07-12, and so is commented out for now. 128 | 129 | ;;;;;;;;;;;;;;; 130 | ;; Powerline (for making the status bar at the bottom of the page more useful) 131 | ;;;;;;;;;;;;;;; 132 | 133 | (require 'powerline) 134 | (powerline-default-theme) ;; Turn on powerline 135 | 136 | ;;;;;;;;;;;;;;; 137 | ;; Font, text display, and color theme settings 138 | ;;;;;;;;;;;;;;; 139 | 140 | ;; Load solarized theme on startup 141 | (load-theme 'solarized-light t) 142 | ;;(load-theme 'solarized-dark t) ;; Uncomment this for the solarized dark theme instead of the solarized light theme. 143 | 144 | ;; Set font to 16 pt. (1/10 font x 160): 145 | (set-face-attribute 'default nil :height 160) 146 | 147 | ;; Word-wrap by word instead of character by default: 148 | (setq-default word-wrap t) 149 | 150 | ;;;;;;;;;;;;;;; 151 | ;; Misc. interface settings 152 | ;;;;;;;;;;;;;;; 153 | 154 | ;; Set zoom in and out to Ctrl + and Ctrl - (By default, they're C-x C-+ and C-x C--, respectively) 155 | (global-set-key (kbd "C-+") 'text-scale-increase) 156 | (global-set-key (kbd "C-=") 'text-scale-increase) 157 | (global-set-key (kbd "C--") 'text-scale-decrease) 158 | 159 | ;; Do the same as above for font sizing with C-mousewheel-up/down 160 | (global-set-key (kbd "") 'text-scale-increase) 161 | (global-set-key (kbd "") 'text-scale-decrease) 162 | 163 | ;; Don't display the 'Welcome to GNU Emacs' buffer on startup 164 | (setq inhibit-startup-message t) 165 | 166 | ;; From https://www.emacswiki.org/emacs/SmoothScrolling: Enable smooth scrolling with the mouse: 167 | (setq mouse-wheel-scroll-amount '(1 ((shift) . 1))) ;; one line at a time 168 | (setq mouse-wheel-progressive-speed nil) ;; don't accelerate scrolling 169 | (setq mouse-wheel-follow-mouse 't) ;; scroll window under mouse 170 | 171 | ;; Cause window titles to display the current buffer's name (rather than just "emacs@computer-name") 172 | (setq-default frame-title-format '("%b")) 173 | 174 | ;; Make Emacs function like a 'normal' text editor (with enhancements for plaintext tables), by: 175 | ;; Entering 'CUA' mode, which enables the C-z, C-s, C-c, C-v, etc. keybindings that are used in many other editors, as well as Shift-based text selection. 176 | ;; Enabling orgtbl-mode (via orgstruct-mode). This allows you to type 177 | ;; | 1 | 2 | 3 | 178 | ;; and press tab for a nicely-formatted ASCII table. 179 | ;;(orgstruct-mode) ;; Following https://www.gnu.org/software/emacs/manual/html_node/org/Tables-in-arbitrary-syntax.html#Tables-in-arbitrary-syntax, enable the use of orgtbl-mode (for tables) without actually turning on all of org-mode. 180 | ;;(orgtbl-mode) ;; Enable orgtbl-mode, where you can put pipe symbols around something and press Tab and it will format into a nice table for you. 181 | (setq cursor-type '(bar . 2)) 182 | 183 | (global-set-key (kbd "C-s") 'save-buffer) ;; Map C-s to Save 184 | (global-set-key (kbd "C-o") 'find-file) ;; Map C-o to Open 185 | 186 | (require 'undo-tree) 187 | (global-undo-tree-mode) 188 | (global-set-key (kbd "C-S-z") 'undo-tree-redo) ;; Map C-S-z to Redo 189 | (global-set-key (kbd "C-y") 'undo-tree-redo) ;; Map C-y to Redo 190 | 191 | ;; Make Ctrl-F4 close the current buffer and ctrl-tab scroll through buffers 192 | (global-set-key (kbd "") 'kill-buffer) 193 | (global-set-key (kbd "") 'switch-to-next-buffer) 194 | (global-set-key (kbd "") 'switch-to-prev-buffer) 195 | 196 | 197 | ;; Get isearch-forward to automatically wrap: 198 | (defadvice isearch-search (after isearch-no-fail activate) 199 | ;; Code block from http://stackoverflow.com/a/36707038, authored by Chris Martin (http://stackoverflow.com/posts/36707038/revisions): 200 | (unless isearch-success 201 | (ad-disable-advice 'isearch-search 'after 'isearch-no-fail) 202 | (ad-activate 'isearch-search) 203 | (isearch-repeat (if isearch-forward 'forward)) 204 | (ad-enable-advice 'isearch-search 'after 'isearch-no-fail) 205 | (ad-activate 'isearch-search))) 206 | ;; End of code block from http://stackoverflow.com/a/36707038 207 | 208 | ;; Make C-f activate search-forward 209 | (global-set-key (kbd "C-f") 'isearch-forward) 210 | (define-key isearch-mode-map "\C-f" 'isearch-repeat-forward) 211 | 212 | ;; From https://www.emacswiki.org/emacs/CuaMode: Activate CUA mode, which makes Emacs function with keybindings like in a "normal" editor : ) 213 | (cua-mode t) 214 | (setq cua-auto-tabify-rectangles nil) ;; Don't tabify after rectangle commands 215 | (transient-mark-mode nil) ;; No region when it is not highlighted 216 | (setq cua-keep-region-after-copy t) ;; Standard Windows behaviour 217 | 218 | ;; Tell emacs to still use CUA keybindings in org-mode, which would otherwise replace some of them: 219 | (setq org-support-shift-select t) 220 | (setq org-replace-disputed-keys t) 221 | 222 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 223 | ;; End of extra interface configurations 224 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 225 | 226 | 227 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 228 | ;; DO NOT EDIT THIS SECTION MANUALLY 229 | ;; Variables configured from within Emacs 230 | ;; (Press C-h v for help understanding a variable -- type the variable's name, then press "edit"/"change", and choose a new setting for that variable. If you then click "Apply and Save", the change will be recorded here. 231 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 232 | 233 | (custom-set-variables 234 | ;; custom-set-variables was added by Custom. 235 | ;; If you edit it by hand, you could mess it up, so be careful. 236 | ;; Your init file should contain only one such instance. 237 | ;; If there is more than one, they won't work right. 238 | '(bmkp-last-as-first-bookmark-file "~/.emacs.d/bookmarks") 239 | '(custom-safe-themes 240 | (quote 241 | ("8aebf25556399b58091e533e455dd50a6a9cba958cc4ebb0aab175863c25b9a4" "d677ef584c6dfc0697901a44b885cc18e206f05114c8a3b7fde674fce6180879" default))) 242 | '(darkroom-margins 0.2) 243 | '(delete-selection-mode nil) 244 | '(org-hide-leading-stars t) 245 | '(org-journal-date-format "%A, %Y-%m-%d") 246 | '(org-journal-file-format "%Y-%m-%d.org") 247 | '(org-startup-truncated nil) 248 | '(package-selected-packages 249 | (quote 250 | (tabbar flycheck powerline solarized-theme markdown-mode markdown-mode+ ivy org-repo-todo org-journal undo-tree))) 251 | '(tabbar-background-color "dark gray") 252 | '(tabbar-separator (quote (0.8)))) 253 | (custom-set-faces 254 | ;; custom-set-faces was added by Custom. 255 | ;; If you edit it by hand, you could mess it up, so be careful. 256 | ;; Your init file should contain only one such instance. 257 | ;; If there is more than one, they won't work right. 258 | '(org-level-1 ((t (:inherit outline-1 :height 1.0)))) 259 | '(org-level-2 ((t (:inherit outline-2 :height 1.0)))) 260 | '(org-level-3 ((t (:inherit outline-3 :height 1.0)))) 261 | '(org-level-4 ((t (:inherit outline-4 :height 1.0)))) 262 | '(org-level-5 ((t (:inherit outline-5 :height 1.0)))) 263 | '(tabbar-button ((t (:inherit tabbar-default)))) 264 | '(tabbar-default ((t (:inherit variable-pitch :background "gainsboro" :foreground "dim gray" :box nil :underline nil :height 0.9)))) 265 | '(tabbar-highlight ((t (:background "cornsilk")))) 266 | '(tabbar-selected ((t (:inherit nil :background "cornsilk" :foreground "black" :underline nil)))) 267 | '(tabbar-separator ((t (:inherit nil :background "dark gray" :underline nil)))) 268 | '(tabbar-unselected ((t (:inherit tabbar-default :box (:line-width 1 :color "white" :style released-button)))))) 269 | 270 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 271 | ;; End of variable settings made from within Emacs 272 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 273 | 274 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 275 | ;; Tab vs. Spaces settings 276 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 277 | 278 | ;; Make actually insert a tabstop, following (but editing from) http://www.creativeadea.com/uncategorized/force-emacs-to-use-tabs: 279 | (setq-default indent-tabs-mode t) 280 | 281 | ;; Bind the TAB key 282 | (global-set-key (kbd "TAB") 'self-insert-command) 283 | 284 | ;; Set the tab width 285 | (setq-default default-tab-width 3) 286 | (setq-default tab-width 3) 287 | (setq-default c-basic-indent 3) 288 | (setq-default c-basic-offset 3) 289 | 290 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 291 | ;; End of tab vs. spaces settings 292 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 293 | 294 | ;;;;;;;;;;;;;;;;;;;;;;;; 295 | ;; Navigating between windows: 296 | ;;;;;;;;;;;;;;;;;;;;;;;; 297 | 298 | ;; Set custom keybindings for moving among windows (since org-mode takes over shift and alt/meta, and I like using the control key for moving quickly over words). The lowercase 's-' is for the Windows key (Not the Shift key (which is S-, with an uppercase S): 299 | (global-set-key (kbd "C-S-M-") 'windmove-right) 300 | (global-set-key (kbd "C-S-M-") 'windmove-left) 301 | (global-set-key (kbd "C-S-M-") 'windmove-up) 302 | (global-set-key (kbd "C-S-M-") 'windmove-down) 303 | 304 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 305 | ;; End of settings for navigating between windows 306 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 307 | 308 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 309 | ;; Custom functions for different writing-modes (e.g., for writing prose distraction-free, and making Emacs behave like a more "normal" text editor) 310 | ;; The 'laity/' in the function names is just to make them easier to search for. You can use your own name or delete that part of the function name) 311 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 312 | 313 | (defun laity/prose-writing-mode () 314 | "Enter writing mode, turning some distractions off. 315 | 316 | This function makes the following changes: 317 | * Starts markdown mode. This enables markdown syntax highlighting. 318 | * Enables orgtbl-mode (via orgstruct-mode). This allows you to type 319 | | 1 | 2 | 3 | 320 | and press tab for a nicely-formatted ASCII table. 321 | * Enables flyspell-mode. This enables red lines under misspelled words. You can middle-click a word to change it. 322 | * Enables markdown-display-inline-images. This will show images within markdown text, if the images 1) have an absolute path, and 2) do not have any other text in the parentheses portion of the image syntax (e.g., this is correct: '![Description goes here](/full/path/to/image.jpg)'. This is not correct: '![Description goes here](/full/path/to/image.jpg 'Description goes here')'). 323 | * Changes the theme to solarized-dark. 324 | " ;; End of docstring (documentation string) 325 | (interactive) ;; Tell emacs that this function is a command (and should thus be listed in the M-x list of commands). 326 | (markdown-mode) ;; Turn on markdown syntax highlighting 327 | ;;(darkroom-mode) ;; Bring in the margins ;; Seems to be missing from Melpa as of 2017-07-12, and so is commented out for now. 328 | (orgstruct-mode) ;; Following https://www.gnu.org/software/emacs/manual/html_node/org/Tables-in-arbitrary-syntax.html#Tables-in-arbitrary-syntax, enable the use of orgtbl-mode (for tables) without actually turning on all of org-mode. 329 | (orgtbl-mode) ;; Enable orgtbl-mode, where you can put pipe symbols around something and press Tab and it will format into a nice table for you. 330 | (flyspell-mode) ;; Enable spell-checking red underlines. 331 | (markdown-display-inline-images) ;; Show markdown images (if they have absolute paths and no text other than the path within the parentheses portion) in the buffer. This can be toggled with M-x markdown-toggle-inline-images 332 | (load-theme 'solarized-dark)) ;; Make the theme dark 333 | 334 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 335 | ;; End of custom functions for different styles of writing 336 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 337 | 338 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 339 | ;; Org-mode settings 340 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 341 | 342 | ;;;;;;;;;;;;;;; 343 | ;; Set agenda files list: 344 | ;; This is the list of all folders and files into which org-mode will look for .org files. 345 | ;;;;;;;;;;;;;;; 346 | 347 | (if (boundp 'org-user-agenda-files) 348 | (setq org-agenda-files org-user-agenda-files) 349 | (setq org-agenda-files (quote ( 350 | ;; ('~' = your home directory) 351 | "~/Daily_Logs" 352 | "~/Primary_Syncing_Folder/Documents/todo" 353 | )))) 354 | 355 | ;;;;;;;;;;;;;;; 356 | ;; Set the org-journal directory 357 | ;; This is the directory (which, when typed here, needs to have a trailing slash ('/') into which org-journal-mode will look for .org files 358 | ;;;;;;;;;;;;;;; 359 | 360 | (setq org-journal-dir "~/Primary_Syncing_Folder/Documents/Research_and_Project_Log_Notes/") 361 | 362 | ;;;;;;;;;;;;;;; 363 | ;; Set default TODO-list states (e.g., TODO, DONE, etc.) and colors for org-mode 364 | ;; '@/!' means that a prompt will appear asking for information when these states are used (?) 365 | ;;;;;;;;;;;;;;; 366 | 367 | ;; Adapted from org-mode complex example file (which is GPLv3-licensed): 368 | ;; Set default TODO states (and a color scheme for them) for all org files. 369 | ;; Following 'C-h v org-todo-keywords', EXAMPLE(e@/!) means that EXAMPLE can be chosen with the 'e' key when using C-c C-t, and that on entering it, a timestamp and note (@) should be recorded, and than on leaving it, just a timestamp (!) should be recorded. (For a timestamp upon just leaving the state, EXAMPLE(e/!) would be valid). 370 | ;; Anything after the pipe symbol ('|') is considered a DONE-type state. 371 | (setq org-todo-keywords 372 | (quote ((sequence "TODO(t)" "NEXT(n)" "RIGHT_NOW(r)" "SCHEDULED(s)" "|" "DONE(d!)") 373 | (sequence "SCHEDULED(s@/)" "WAITING(w@/!)" "HOLD(h@/!)" "|" "CANCELLED(c@/!)") 374 | (sequence "|" "TIME_TRACKED(x)")))) ;; TIME_TRACKED is a non-todo but still time-tracked item. 375 | 376 | (setq org-todo-keyword-faces 377 | (quote (("TODO" :foreground "red" :weight bold) 378 | ("NEXT" :foreground "blue" :weight bold) 379 | ("RIGHT_NOW" :foreground "green" :weight bold) 380 | ("DONE" :foreground "forest green" :weight bold) 381 | ("WAITING" :foreground "orange" :weight bold) 382 | ("HOLD" :foreground "magenta" :weight bold) 383 | ("CANCELLED" :foreground "forest green" :weight bold) 384 | ("SCHEDULED" :foreground "forest green" :weight bold)))) 385 | 386 | (setq org-todo-state-tags-triggers 387 | (quote (("CANCELLED" ("CANCELLED" . t)) 388 | ("WAITING" ("WAITING" . t)) 389 | ("HOLD" ("WAITING") ("HOLD" . t)) 390 | (done ("WAITING") ("HOLD")) 391 | ("TODO" ("WAITING") ("CANCELLED") ("HOLD")) 392 | ("NEXT" ("WAITING") ("CANCELLED") ("HOLD")) 393 | ("DONE" ("WAITING") ("CANCELLED") ("HOLD"))))) 394 | 395 | ;;;;;;;;;;;;;;; 396 | ;; Misc. org-mode settings 397 | ;;;;;;;;;;;;;;; 398 | 399 | (setq org-agenda-search-view-always-boolean t) ;; When searching in org-mode's agenda, don't require explicit '+' symbols (so 'test1 test2' will be seen as '+test1 +test2' when this is set to t) 400 | 401 | ;; Get header font sizes to change alongside non-header text when the font is increased or decreased. For a discussion about this, see, e.g., http://stackoverflow.com/a/21525620. 402 | 403 | (setq solarized-scale-org-headlines nil) 404 | 405 | ;;;;;;;;;;;;;;; 406 | ;; Org-mode syntax 407 | ;;;;;;;;;;;;;;; 408 | 409 | ;; (setq org-hide-emphasis-markers t) ;; Hide markup (e.g., *bold*, /italics/, etc.). I've decided to comment this out for now, because org-emphasize below does not always act in intuitive ways. 410 | 411 | ;; Set keyboard shortcuts for C-b (bold), C-u (underline), and C-i (italicize). For a discussion of this, see, e.g., https://emacs.stackexchange.com/questions/27645: 412 | 413 | (defun laity/org-emphasize-with-message-and-highlighting(org-emphasize-character org-emphasize-character-plaintext keybinding-character-for-message) 414 | (interactive) 415 | (org-emphasize org-emphasize-character) 416 | (exchange-point-and-mark) ;; Re-select the originally-highlighted text 417 | (setq deactivate-mark nil) ;; Tell emacs to actually show the highlighting. 418 | (message "You can un-bold text by deleting the '%s's or pressing C-S-%s." org-emphasize-character-plaintext keybinding-character-for-message)) 419 | 420 | (defun laity/org-un-emphasize() 421 | (interactive) 422 | (org-emphasize ?\ ) 423 | (exchange-point-and-mark) ;; Re-select the originally-highlighted text 424 | (setq deactivate-mark nil) ;; Tell emacs to actually show the highlighting. 425 | ) 426 | 427 | 428 | (define-key org-mode-map (kbd "C-b") ( 429 | lambda() 430 | (interactive) 431 | (laity/org-emphasize-with-message-and-highlighting ?\* '* 'b) 432 | )) 433 | (define-key org-mode-map (kbd "C-i") ( 434 | lambda() 435 | (interactive) 436 | (laity/org-emphasize-with-message-and-highlighting ?\/ '/ 'i) 437 | )) 438 | (define-key org-mode-map (kbd "C-u") ( 439 | lambda() 440 | (interactive) 441 | (laity/org-emphasize-with-message-and-highlighting ?\_ '_ 'u) 442 | )) 443 | 444 | (define-key org-mode-map (kbd "S-C-b") ( 445 | lambda () 446 | (interactive) 447 | (laity/org-un-emphasize) 448 | )) 449 | (define-key org-mode-map (kbd "S-C-i") ( 450 | lambda () 451 | (interactive) 452 | (laity/org-un-emphasize) 453 | )) 454 | (define-key org-mode-map (kbd "S-C-u") ( 455 | lambda () 456 | (interactive) 457 | (laity/org-un-emphasize) 458 | )) 459 | 460 | ;;;;;;;;;;;;;;; 461 | ;; Misc. other settings 462 | ;;;;;;;;;;;;;;; 463 | 464 | ;; Make shift+click highlight text rather than open a menu (see, e.g., https://superuser.com/a/522183): 465 | (define-key global-map (kbd "") 'mouse-save-then-kill) 466 | 467 | ;; When in org-mode, turn org-indent-mode on by default: 468 | (add-hook 'org-mode-hook ;; When entering into org-mode... 469 | (lambda () 470 | (org-indent-mode 1))) 471 | 472 | ;; org-indent-mode occasionally needs re-initializing (see here: https://github.com/syl20bnr/spacemacs/issues/2732), so we'll define a function and keybinding to do so: 473 | (defun laity/reindent() 474 | "Fix org-mode indentations." ;; Inspired by https://github.com/syl20bnr/spacemacs/issues/2732#issuecomment-173704844, but altered from it (it was really just these two steps; my use and invocation are different). 475 | (interactive) 476 | (org-indent-mode 1) 477 | (recenter-top-bottom)) 478 | 479 | ;; Following http://orgmode.org/manual/TODO-dependencies.html#TODO-dependencies, make org-mode honor Todo dependencies by not allowing something to be marked DONE unless its children have all been addressed. 480 | (setq org-enforce-todo-dependencies 't) 481 | (setq org-enforce-todo-checkbox-dependencies 't) 482 | 483 | ;; Make the cursor blink, and be a narrow line: 484 | (blink-cursor-mode 1) 485 | (setq-default cursor-type 'bar) 486 | 487 | (setq make-backup-files nil) ; From http://superuser.com/a/84168/192382: stop creating (backup) (~) files 488 | 489 | ;; When in org-mode, load a function I wrote for facilitating pasting links, and set keyboard commands for it and a related function. 490 | (add-hook 'org-mode-hook ;; When entering into org-mode... 491 | (lambda () 492 | ;; Define the function: 493 | (defun laity/org-id-paste-link () 494 | "Paste an org-mode link to another line (or other file listed in org-agenda-files), with the prefix \"id:\". 495 | 496 | This function assumes that the last thing that you did before running this function was going to the target location of the link and running M-x org-id-copy, which will generate (if necessary) and then copy an ID for that line of org-mode document." 497 | (interactive) 498 | (insert "[[id:") 499 | (yank) 500 | (insert "][]]") 501 | (backward-char 2)) 502 | 503 | (local-set-key (kbd "C-x l") 'org-id-copy) 504 | (local-set-key (kbd "C-x L") 'laity/org-id-paste-link))) ;; local-set-key will set the key for the major mode (any buffer in org-mode). 505 | 506 | ;; Set new text for emacs' startup "Scratch buffer:" 507 | (setq initial-scratch-message "Welcome to Emacs, configured for use like a normal text editor, with org-mode built-in! 508 | 509 | * Enabling org-mode 510 | 511 | To turn org-mode on, type M-x (as noted below, that means hold down the 'Meta' key (usually the Alt key or Command key, depending on your keyboard) and x at the same time), then type 'org-mode', and press enter. 512 | 513 | This document is written in org-mode syntax. Turn on org-mode now, and you'll see the headlines 'fold' down. You can then press repeatedly on a headline to cycle through it being folded, partially open, and fully open. You can also use Shift- to cycle through *all* headlines in the document at once. 514 | 515 | 516 | *Go ahead and enable org-mode now, using the instructions above.* 517 | 518 | 519 | * org-mode syntax 520 | 521 | org-mode has some special conventions for marking-up text. Many of these are similar to [[https://daringfireball.net/projects/markdown/syntax][Markdown]], which you may have heard of. 522 | 523 | For example: 524 | 525 | - Want to make a bullet list? Just add a dash to the front of each line, like with this line! 526 | - Want to make text *bold* or /italicized/? 527 | - Want to mark something as ~computer code~? 528 | - Want to insert a block quote? 529 | #+BEGIN_QUOTE 530 | I use Emacs, which might be thought of as a thermonuclear word processor. 531 | - Neal Stephenson 532 | #+END_QUOTE 533 | 534 | (If you're in org-mode right now, you can click on either the line 'Want to insert a block quote' and/or the line '#+BEGIN_QUOTE' and press on your keyboard to 'Fold' the rest of the text underneath.) 535 | 536 | ** More org-mode syntax examples 537 | 538 | You can format text in *more* /more/ _more_ =more= ~more~ +more+ ways. 539 | 540 | *** This line is a 'Headline' because it starts with one or more asterisks (more asterisks = more indented in the list). It has three tags (like hashtags) :tag1:tag2:tag3: 541 | *** TODO This line is another 'Headline.' It is also a 'Todo' item, because it starts with the word TODO. With org-mode activated, put your cursor on this line, and run *M-x org-todo* (or use the keyboard shortcut, *C-c C-t*, and try changing it's TODO state to 'DONE'. 542 | 543 | *** What's below this is an example bullet list (press on this line if you can't see what's below it) 544 | 545 | - This is a bullet list 546 | - [ ] This line has a checkbox. 547 | - [X] This line also has a checkbox, which has been checked. 548 | - [ ] This line has a checkbox. To check it, you can either manually write 'X' in it, or you can use the keyboard shortcut *C-c C-c*. Go ahead and try that now! 549 | 550 | ** Documentation for org-mode syntax 551 | 552 | The *'Compact Guide' to org-mode's syntax* is [[http://orgmode.org/orgguide.pdf][here in PDF form]] and [[http://orgmode.org/guide/][here in HTML form]]. The PDF is 45 pages, but that's because it has a lot of explanatory text; you *don't need to read the whole document, and certainly not all at once!* Rather, just look through the Table of Contents when you have a question, and learn as you go. 553 | 554 | * Keyboard shortcuts to remember 555 | :PROPERTIES: 556 | :ID: 0fc580dc-4707-49bb-b42c-4d4f92886ab8 557 | 558 | This 'Properties drawer' gives this headline ('Keyboard shortcuts to remember') a unique ID number that we can make a clickable link to. There's a link above that links to this ID. 559 | 560 | This Properties drawer and ID number were automatically created using the command 'org-id-copy', or the keyboard command *C-x l* (as mentioned below, under the 'org-mode shortcuts' headline). 561 | 562 | You can link to this from elsewhere in any document you've listed in the ~org-agenda-files~ part of your ~.emacs~ file using syntax like this: ~[ [id:0fc580dc-4707-49bb-b42c-4d4f92886ab8][Text for the link goes here] ]~ 563 | 564 | *Note:* Linking to this will only work for files that you've added to the ~org-agenda-files~ part of your ~.emacs~ file. 565 | :END: 566 | 567 | ** Explanation of how keyboard shortcuts are written out here (as in other org-mode documentation you might read) 568 | 569 | - 'C-h k' means 'Hold down Control and h and the same time, then press k.' 570 | - Similarly, 'M-x' means 'Hold down 'Meta' (usually the Alt key, depending on your keyboard) and x at the same time.' 571 | - 'C-S-' means 'Hold down Control, Shift, and the up arrow button at the same time.' 572 | - Similarly, 'C-c C-t' means 'Hold down Control and c and the same time, then hold down Control and t at the same time.' 573 | 574 | ** Summarizing what's below: *The four basic keyboard commands for you to learn* 575 | 576 | org-mode and Emacs both have so many features, it takes /years/ to learn them all. Thus, my recommendation is not to try to learn everything all at once. Rather, learn the very basics, and then add to your knowledge as you have new needs that come up. 577 | 578 | With this in mind, there are just four keyboard commands to remember when starting to use org-mode with this configuration file: 579 | 580 | - *M-x*: Bring up a list of every function in Emacs. Put differently, bring up a list of every thing that Emacs can do, from moving the cursor like your arrow keys do to doing complicated org-mode tasks. 581 | - The menu that M-x will bring up is searchable. Thus, *you don't need to remember every function name,* if you can articulate a vague idea of what its name might be. You can always learn keyboard shortcuts later. 582 | - For example, do you want to clock-in to a task in your Todo list? By searching for the phrase 'clock in', you'll find the function's name, 'org-clock-in'! 583 | - Another example: Want to select from a list of all of the Todo states (TODO, DONE, SCHEDULED, HOLD, etc.) that org-mode understands? Search for the phrase 'todo', and you'll find 'org-todo'! 584 | - *C-g* (think 'Control: Go away'): The equivalent of 'Cancel' whenever you're in a menu like from *M-x*. 585 | - *C-x b* (think 'Control/execute buffers'): Bring up a list of all of the open buffers (buffers are like tabs, but you can bring them up anywhere, including in multiple windows). Like the *M-x* menu, this menu is searchable. 586 | - *C-x 1*: Close all split-screen panes except for the current one. 587 | 588 | ** Normal keyboard shortcuts 589 | 590 | Although Emacs doesn't typically use them, this configuration of Emacs has enabled 'normal' keyboard shortcuts like C-c for *copy*, C-v for *paste*, C-o for *open*, etc. 591 | 592 | If you notice that a keyboard shortcut you try to use doesn't work, let me know, and we can see about adding it. 593 | 594 | *C-f* does work for *searching* a file. To jump between matches, you need to keep pressing C-f (instead of , like in some text editors). 595 | 596 | You can highlight text and then press *C-b* to *bold* it. Similarly, you can use *C-i* for /italicizing/ and *C-u* for _underlining_ text. *C-S-b*, *C-S-i*, and *C-S-u* will un-emphasize (un-bold, un-italicize, and un-underline) highlighted text. 597 | 598 | ** Menus 599 | 600 | If you remember even *just the two keyboard shortcuts below*, you can use Emacs with org-mode :) 601 | 602 | - *M-x*: Get a searchable pop-up menu (called 'Ivy') of every function in Emacs 603 | - *C-g*: Cancel a pop-up menu 604 | 605 | You can change the font that Emacs uses using the *Options -> Set Default Font...* menu at the top of the window. 606 | 607 | *F8* will bring up a clickable file browser sidebar that you can use in addition to the ~File -> Open~ menu. 608 | 609 | ** Getting help 610 | 611 | - *C-h k*: Get the help documentation for any keyboard shortcut (you type the keyboard shortcut, and it tells you what that shortcut does) 612 | - *C-h f*: Get the help documentation for any function (you type the function name, and it shows you the help documentation for it 613 | - *C-h v*: Get the value of any configuration variable in Emacs (you type the variable name, and it tells you what it does and what it's currently set to) 614 | 615 | ** Switching between windows and open files ('buffers') 616 | 617 | (A '*buffer*' in Emacs is like a tab in Firefox or Chrome -- it's a file or scratchpad that's currently open) 618 | 619 | - *C-x b*: Switch between buffers 620 | - *C-x 1*: If you have multiple windows/panes open, switch to just the current one. 621 | - *windows-key-*, *windows-key-*: If you have multiple windows/panes open, move between them. 622 | 623 | ** Scrolling 624 | 625 | One element of Emacs that sometimes frustrates users is that *the cursor will move when you scroll through a long document.* If you would like to 'bookmark' a part of your document to be able to easily jump back to, you can use *M-x point-to-register*. It will ask you to type a letter (for example, 'a'), to save your place. When you want to jump back to that place in your document, you can use ~M-x jump-to-register~, and then press 'a'. 626 | 627 | This means that you can have many bookmarks in your document (from a-z and 0-9, for example)! 628 | 629 | Because the ~M-x~ menu is searchable, you can also search for just ~register~ to see what other commands Emacs can use for jumping around a document (and across documents/buffers). For example, ~M-x list-registers~ will list all of the bookmarks you've set across all open documents, along with the letters/numbers you've used to identify them. 630 | 631 | ** org-mode shortcuts 632 | 633 | - *C-x l* / *C-x L*: When you're in org-mode, you can go to any headline (any line that starts with '*'), and type C-x l (think 'l' for 'link'). This will create an ID number for that headline and copy a link to it to your keyboard. 634 | Then you can go anywhere else in your document and press C-x L to paste the link in org-mode format. Type some text to describe the link, and you now have a clickable link to that first place in your document! 635 | *Note:* This will only work for files that you've added to the ~org-agenda-files~ part of your ~.emacs~ file. 636 | 637 | - *C-c C-c*: Toggle/refresh stuff (toggle check boxes, change tags, refresh clock-table, depending on the context) 638 | - *C-c C-t*: Quick access to list of todo states (runs M-x org-todo) 639 | 640 | - *M-*: Add a new list item 641 | - :M-S-*: Add a new checkbox item 642 | - *M-[left/right]*: change the spacing of list items 643 | 644 | - **: Fold / Unfold the headline where your cursor is. 645 | - *S-*: Fold / Unfold every headline in the document. 646 | - *M-* / *M-*: Move a headline up or down 647 | - *M-* / *M-*: De-indent / Indent a headline 648 | - *M-*: Insert a new headline 649 | - *M-S-*: Insert a new TODO headline 650 | 651 | * org-mode functions to remember 652 | 653 | (You can run any of these from the M-x menu): 654 | 655 | - *org-todo*: Quick list of todo states (nicer than cycling through with S-[left/right]) 656 | - *org-show-todo-tree*: See the todo list for the current buffer (with non-todo lines folded) 657 | 658 | - *org-add-note*: Add a note with a datestamp 659 | 660 | - *org-sort*: Sort a list by something (you get a menu re: alphabetical, numeric, etc.) 661 | 662 | - *org-sparse-tree*: See just the unfinished Todo items in the current file. 663 | - *org-clock-in* / *org-clock-out*: Add a timeclock to the current headline. 664 | - *org-clock-report*: See how much time you've spent (from *org-clock-in* / *org-clock-out*) on the current headline and the headlines below it. You can configure the report [[http://orgmode.org/manual/The-clock-table.html]][in a lot of ways]]. 665 | 666 | - *org-agenda*: Search through all of your ~org-agenda-files~ files, see all of the Todo entries across them, and more. 667 | (Within org-agenda, if you press a (for full Agenda view), then v (for View) and d (for Day), you'll get the current day's entries. 668 | 669 | ") ;; End of scratch message definition. 670 | 671 | ;; Since the scratch-buffer's message is long, tell emacs to scroll to the beginning of the buffer on startup: 672 | (add-hook 'emacs-startup-hook 'startup-scroll-function) 673 | (defun startup-scroll-function () 674 | "Scroll to the top of the buffer" 675 | (beginning-of-buffer)) 676 | 677 | 678 | 679 | --------------------------------------------------------------------------------