Compare commits

..

826 Commits

Author SHA1 Message Date
87b37aadbe
Install the orgit and orgit-forge packages 2023-12-04 05:18:22 +01:00
a87bcffba7
Add shortcut for org-road-dailies-capture-date 2023-12-04 05:18:07 +01:00
4cdb694132
Make Org agenda not show a warning for schedule+deadline items 2023-12-04 05:16:35 +01:00
7606482c8e
Add the rg package 2023-11-02 17:23:45 +01:00
c5dd1e4aa8
Add the ag package 2023-11-02 17:23:34 +01:00
4f741497d1
Add the ebnf-mode package 2023-11-02 17:23:10 +01:00
47c0d61301
Change the default font size 2023-11-02 17:22:55 +01:00
10faa3b170
Change fill column to 120 2023-11-02 17:22:24 +01:00
f4ecdb518e
Add sp-rewrap-sexp to mc list 2023-11-02 17:21:46 +01:00
b1f2df7e75
Remove the flycheck-rust package
It’s not maintained since 2019 and it throws a lot of errors.
2023-10-27 06:12:40 +02:00
828448680a
Disable undo-tree saving
It writes a lot of files which might sound handy but since i don’t always use
Emacs to edit files, they can easily become obsolete.
2023-10-27 06:02:04 +02:00
519f7acf1a
Add the yuck-mode package 2023-10-27 06:01:55 +02:00
d975584e25
Add forge-database-v*.sqlite to gitignore
It seems forge now simply backs up the whole sqlite file instead of dumping it.
2023-10-24 15:53:04 +02:00
6a50199652
Final touches 2023-10-24 09:28:20 +02:00
5351cde10d
Fix a source link for one of my commands 2023-10-24 09:28:01 +02:00
5cd85a35ca
Make sure we use orderless exclusively during completion 2023-10-24 09:28:01 +02:00
f9b50a7af7
Fine tune Rust and Cargo related packages 2023-10-24 09:28:01 +02:00
3130097949
Globally enable undo-tree 2023-10-24 09:28:01 +02:00
0f7935da32
Reduce the default font size 2023-10-24 09:28:01 +02:00
1cf60c50ef
Remove some unused key bindings 2023-10-24 09:28:01 +02:00
38c2dacedc
Get rid of gpolonkai/isearch-regexp
isearch is good in itself, so this also rebinds isearch commands to their
rightful bindings.
2023-10-24 09:28:00 +02:00
d8eb235b25
Remove some unused functions 2023-10-24 09:28:00 +02:00
2c18b4c70a
Only load fish-mode for fish files 2023-10-24 09:28:00 +02:00
c39e8c2bbf
Only load systemd-mode for specific file types 2023-10-24 09:28:00 +02:00
6987cb93dc
Add a new feed to my TwTxt settings 2023-10-24 09:28:00 +02:00
07725bdf2f
Only load elpher when it is used 2023-10-24 09:28:00 +02:00
d9dd5acd15
Only enable hl-todo mode in programming modes 2023-10-24 09:28:00 +02:00
5b55077411
Only load tidal for tidal files 2023-10-24 09:27:59 +02:00
47abe6c958
Prevent open-line-above/below from doing completion if no indentation is needed 2023-10-24 09:27:59 +02:00
60307f6432
Add and configure the cape package 2023-10-24 09:27:59 +02:00
5b0156d951
Add and configure the corfu package 2023-10-24 09:27:59 +02:00
4d59042b60
Add and configure the consult-projectile package 2023-10-24 09:27:59 +02:00
927753fbd5
Add and configure the org-appear package 2023-10-24 09:27:59 +02:00
847c65ddc0
Add and configure the consult-org-roam package 2023-10-24 09:27:59 +02:00
fe79b09035
Add and configure the spdx package 2023-10-24 09:27:58 +02:00
a2635593e8
Add and configure the string-inflection package 2023-10-24 09:27:58 +02:00
75342a80fc
Add a key binding for sp-rewrap-sexp 2023-10-24 09:27:58 +02:00
8e320b2db6
Minor adjustment for using corfu, so tab always tries to complete 2023-10-24 09:27:58 +02:00
e66540149d
Refactor gpolonkai/goto-next-char for a bit more performance 2023-10-24 09:27:58 +02:00
3011905d2b
Make gpolonkai/org-space-key customizable 2023-10-24 09:27:58 +02:00
4d7a2795a4
Remap dabbrev stuff so it’s more useful 2023-10-24 09:27:58 +02:00
12a66c6ee7
Change my hidden modeline implementation to hide-mode-line 2023-10-24 09:27:56 +02:00
93851abbe2
Refactor my key bindings into submaps 2023-10-24 09:25:05 +02:00
76d99e522a
Move key bindings to their final place 2023-10-24 09:25:04 +02:00
d2c81b01f5
Move programming related packages to their own section 2023-10-24 09:24:13 +02:00
b66589eb83
Move utility packages to their own section 2023-10-24 09:21:25 +02:00
1ab3596465
Move coding related packages to their own section 2023-10-24 09:21:25 +02:00
02fe027e61
Move mailing related configuration to its own section 2023-10-24 09:21:25 +02:00
c058cfe853
Move completion related configuration to its own section 2023-10-24 09:21:25 +02:00
3539accfb1
Move Org related packages and settings to their own section 2023-10-24 09:21:23 +02:00
ade76106df
Move Git related packages to their own section 2023-10-24 09:10:21 +02:00
6f51d5133f
Move dired related packages to their own section 2023-10-24 09:10:20 +02:00
7faa3b099a
Move usability packages to their own section 2023-10-24 09:10:20 +02:00
38fdccda58
Move Projectile config to its own section 2023-10-24 09:10:20 +02:00
e17223828e
Configure built-in packages before everything else 2023-10-24 09:10:20 +02:00
cde06cd98d
Move Emacs default settings to (almost) the top 2023-10-24 09:10:20 +02:00
224c12a060
Move some custom functions to their new place
Others will be either deleted or moved later.
2023-10-24 09:10:19 +02:00
2ab396a5fe
Move package manager configuration to a new place 2023-10-24 08:58:47 +02:00
4c11f8190d
Move pre-initialization steps to the top of my config 2023-10-24 08:58:47 +02:00
1a90cb599f
Remove the func-region function 2023-10-24 08:58:35 +02:00
9873a7d3ed
Remove the un/hex-region commands 2023-10-24 08:40:30 +02:00
f46f550efb
Remove the mbork/copy-current-location function 2023-10-24 06:26:05 +02:00
71ccdfc43b
Remove the jinja-mark-translatable function 2023-10-24 06:26:05 +02:00
f7c91a882d
Remove Zim wiki editing commands
I no longer use Zim (but even if i will, i probably won’t need these).
2023-10-24 06:26:04 +02:00
87e0fb1b74
Remove the python-add-docstring function 2023-10-24 06:26:04 +02:00
8290095a01
Fix mu4e’s completing read setting
Vertico doesn’t have such a function but hooks into the built-in one.
2023-10-24 06:26:04 +02:00
05052c21c6
Remove the pacfiles-mode package 2023-10-24 06:25:56 +02:00
9abf160081
Remove the ansible package 2023-10-24 06:24:09 +02:00
afc5474af6
Remove the edit-server package 2023-10-24 06:21:22 +02:00
f068563eae
Remove restclient and ob-restclient 2023-10-24 06:07:08 +02:00
86cc519270
Remove the gobgen package
The GObject boilerplate changed a lot since i wrote this package, so it’s pretty
much useless now.
2023-10-24 06:01:09 +02:00
eb1d6af07e
Remove the coffee-mode package 2023-10-23 07:54:05 +02:00
5379c3ab13
Remove the csharp-mode package 2023-10-23 07:51:45 +02:00
e7b1422f62
Remove the go-mode package 2023-10-23 07:50:26 +02:00
db1d1dd95d
Remove the clojure-mode package 2023-10-23 07:44:10 +02:00
52bcb80a3f
Remove the graphql package 2023-10-23 07:38:31 +02:00
4709929f5b
Remove the consult-ag package 2023-10-23 07:36:44 +02:00
67acc6c258
Remove the org-caldav package 2023-10-23 07:31:57 +02:00
c7a948c9da
Remove the ag package 2023-10-23 07:15:04 +02:00
b5132f05b5
Remove the sphinx-doc package 2023-10-23 07:00:40 +02:00
ea6c5549cb
Remove the bibtex-completion package 2023-10-23 06:55:38 +02:00
fe3a358900
Remove the fancy-narrow package 2023-10-23 06:51:04 +02:00
984f2146e2
Remove the loccur package 2023-10-23 06:45:50 +02:00
b0879b8b91
Remove the keyfreq package
I don’t do anything with this data, so there’s no real use here.
2023-10-22 08:19:18 +02:00
875dd97786
Remove command-log-mode
Because that “occasional screen casting” basically means “never”.
2023-10-22 08:15:16 +02:00
d2d5f8e267
Remove the ement package
Adding a new device to my Matrix account and syncing rooms takes a lot of time
on my HS, which makes it pretty unusable.
2023-10-22 08:11:56 +02:00
6e0b245d34
Remove the feature-mode package 2023-10-22 08:08:13 +02:00
989125b0b2
Remove the expand-region package 2023-10-22 07:04:00 +02:00
e0367111d2
Remove the electric-case package 2023-10-22 06:32:00 +02:00
31bb9c922f
Remove the open-this-file-as-other-user function 2023-10-22 05:52:57 +02:00
1849204a57
Remove the delete-current-line function
I don’t use it.
2023-10-22 05:46:27 +02:00
53876320dc
Remove the origami package 2023-10-21 17:13:46 +02:00
ec2818c4b9
Remove the general package
It might make a comeback later, but for now, i can’t see how it could be useful.
2023-10-21 17:05:52 +02:00
71a2ff9022
Remove the neotree package 2023-10-21 16:29:09 +02:00
15da1c7d85
Remove the achievements package
It was fun initially, but it grew old…
2023-10-21 16:26:03 +02:00
f8bbc15cd5
Remove the kanban package 2023-10-21 16:23:13 +02:00
c91421c3f8
Remove the sx package 2023-10-21 16:21:26 +02:00
32e07598b7
Remove the emamux package
I never ever used it.
2023-10-21 16:19:38 +02:00
365a2a00f4
Remove dark/bright mode switching functions
With doom-themes, it’s much easier to switch between different themes.
2023-10-21 16:05:14 +02:00
0682d7df78
Remove the focus package 2023-10-21 08:04:11 +02:00
a301db6205
Remove yasnippets
I never use them, why install it then?
2023-10-21 07:55:55 +02:00
715a53f417
Remove Python f-string font locking hack
It is now supported by python-mode natively.
2023-10-21 07:50:10 +02:00
0645426162
Remove the ponylang-mode package 2023-10-20 16:00:04 +02:00
17263b41fd
Remove the gnugo package 2023-10-20 15:58:27 +02:00
2bc338371e
Remove the camel-to-snake-case function
string-inflection (soon to be added) already does this for me.
2023-10-20 15:55:20 +02:00
f006617927
Remove the mediawiki package 2023-10-20 15:53:01 +02:00
8be18afab7
Remove dangling ace-popup-menu configuration
It is not working for a while now, why keep it?
2023-10-20 15:51:39 +02:00
ebcaf1c6da
Remove visit-init-file and visit-org-index 2023-10-20 15:46:29 +02:00
23b8a3a2ac
Remove gpolonkai/undo-buffer-kill and companion functions 2023-10-20 15:27:03 +02:00
0fdc67dffe
Remove org-tempo configuration
I don’t use it, as `C-c C-,` is easier.
2023-10-20 15:03:54 +02:00
0d9deef614
Remove nyan-prompt 2023-10-20 14:50:38 +02:00
f9028e6c9c
Remove insert-pair-alist configuration
It seems to cause more problems than solutions.
2023-10-20 14:49:02 +02:00
0b00baff99
Remove gpolonkai/enclose-region
I never really used this command.
2023-10-20 14:43:15 +02:00
87137be645
Remove my own implementation of duplicate-line
Emacs has it built in now.
2023-10-20 14:38:37 +02:00
e13a6d9173
Remove the æ-kill-or-copy-whole-line command
I never used, not even bound it.
2023-10-20 14:37:42 +02:00
2c490cfc36
Remove the get-number-at-point function
thing-at-point already has `number-at-point`.
2023-10-20 14:37:42 +02:00
a6bd9c62c2
Remove zoning related commands and packages 2023-10-20 14:37:42 +02:00
c43df73208
Remove Company and its subpackages 2023-10-20 14:37:42 +02:00
354d1ea52d
Remove my transient keymap
With which-key it’s no longer needed.
2023-10-20 14:37:37 +02:00
5f08005ef2
Remove LSP related packages (including lsp-dart) 2023-10-20 10:40:50 +02:00
67fc81169a
Fix smartparens config 2023-10-16 14:09:54 +02:00
9eac9766cb
Fix saveplace configuration 2023-10-16 10:04:07 +02:00
8f00b92bcf
Replace tabs with spaces 2023-10-15 07:00:07 +02:00
d6e8e7000f
Update key frequency table 2023-10-15 05:14:16 +02:00
857d01b3d0
Don’t turn on zoning upon startup 2023-10-06 05:56:28 +02:00
c1d777c365
Move calendar settings into :custom directives 2023-10-06 05:02:15 +02:00
ee064eed75
Remove the editorconfig package 2023-10-06 04:39:11 +02:00
bdb9a52357
Update key frequency table 2023-10-06 04:37:13 +02:00
aa930b3aff
Update twtxt configuration 2023-10-06 04:37:12 +02:00
57771a1c91
Remove the mu4e-maildirs-extension package
It seems to be gone from MELPA.
2023-10-05 16:00:54 +02:00
b77b8d63bd
Add gpolonkai/numeric-sort-lines 2023-10-03 10:33:05 +02:00
c971892569 Remove the golden-ratio package
As good as it seemed, it gets worse now that i use Emacs more in full-screen mode.
2023-09-29 10:41:18 +02:00
5ab0061e2e Fix CRM indicator regexp 2023-09-29 10:41:18 +02:00
c8a4c1587f Update key frequency database 2023-09-29 10:40:57 +02:00
904704668f
Update key frequency table 2023-09-29 08:15:22 +02:00
2ceecc5a21
Display horizontal rulers in Org files as a full-width line 2023-09-29 08:15:06 +02:00
16e31aec48
Remove the docker-tramp package
It is deprecated in favour of the builting tramp-container.
2023-09-29 08:15:06 +02:00
4adf6f702d
Move from Ivy to Consult+Vertico+Orderless 2023-09-29 08:15:05 +02:00
86eee97bd1
Install and configure the visual-fill-column package 2023-09-29 08:15:05 +02:00
f875a518ee
Update mu4e configuration 2023-09-29 08:15:05 +02:00
7796a31ee5 Update key frequency table 2023-09-16 06:16:09 +02:00
6779653716 Improve Org Roam configuration 2023-09-03 21:03:52 +02:00
9723c30269 Update key frequency table 2023-08-28 23:57:24 +02:00
f2601478c4
Fine-tune Org mode config 2023-09-03 13:21:51 +02:00
37c364064c
Install and configure the general package 2023-09-03 13:21:20 +02:00
123af3361e
Make which-keys pop up faster 2023-08-30 18:41:22 +02:00
48b5f4ae5c
Apply all-the-icons to dired buffers 2023-08-30 18:41:11 +02:00
74d381ceed
Remove activity-watch-mode
I no longer use this software as it didn’t really provide my with any good
insights, so meh…
2023-08-30 18:20:53 +02:00
6a4f04e775
Remove the initial message from the scratch buffer 2023-08-30 18:17:53 +02:00
7701b05dac
Fix dashboard icons 2023-08-30 18:16:21 +02:00
572c9606da
Update key frequency table 2023-08-30 17:27:49 +02:00
ee71223dc6
Load themes via doom-themes 2023-08-30 17:27:49 +02:00
1e1d6ce4cd
Add some more files to .gitignore 2023-08-30 17:27:49 +02:00
71b3e75c22
Change the default filename for Org Roam nodes 2023-08-30 17:27:49 +02:00
fbf8bc0270
Add wdired--self-insert to mc commands 2023-08-30 17:27:49 +02:00
ad14675eba
Move from Moody to doom-modeline 2023-08-30 17:27:49 +02:00
cf0813bc7c
Use ligatures instead of prettify-symbols 2023-08-30 17:27:49 +02:00
80b92ec9f4
Move insert-pair-alist setting to its correct place 2023-08-30 17:27:48 +02:00
0ad4d372fe
Move from Hack to Fira Code 2023-08-30 17:27:48 +02:00
140868afbb Update key frequency table 2023-08-28 10:10:56 +02:00
b428361a5d Update Org Roam configuration 2023-08-28 10:10:48 +02:00
e6eb03c3d7
Update key frequency table 2023-08-29 11:04:20 +02:00
e7e7f4c0e6
Install the Nord theme 2023-08-29 11:03:51 +02:00
3c4462e761
Add a major mode for nginx configuration editing 2023-08-29 10:57:50 +02:00
189a2e79c4
Add a major mode for systemd unit editing 2023-08-29 10:55:44 +02:00
1e391c6c72
Bugfix: Fix the value of org-refile-targets 2023-08-29 10:53:50 +02:00
9661b70b67
Install and configure the which-key package 2023-08-29 10:52:54 +02:00
23712fed8c
Install and configure the org-roam package 2023-08-29 10:51:33 +02:00
850d803d61
Add fill-column setting to the config 2023-08-29 10:51:00 +02:00
3b72550a3f Update key frequency table 2023-07-25 07:22:51 +02:00
6334bf2288
Update key frequency table 2023-07-25 07:21:36 +02:00
d67f5af181
Add upcase-region to mc commands 2023-07-25 07:21:15 +02:00
dca73a11d0
Add key binding for string inflection 2023-07-25 07:19:15 +02:00
30d55334cb
Display key strokes immediately 2023-07-25 07:18:42 +02:00
9416f20636
Remove matrix-client
I don’t think it’s maintained at all.  Also, even if i decide to use
Matrix from Emacs again, i will use Ement, not matrix-client.
2023-01-31 12:56:49 +01:00
a285834fbb
Set up all faces in configuration.org 2023-01-31 12:54:41 +01:00
47bfbd2457
Commit the .achievements file in its usual format
This file hasn’t really changed for a while and it probably won’t in the foreseeable future.
Let’s not allow it to pollute my repository’s `git status` 😀
2023-01-31 09:13:28 +01:00
4737acaad0
Make sure we don’t set point just because there is a click in an inactive window 2023-01-31 09:13:28 +01:00
9f95dc62cc
Update key frequency table 2023-01-31 09:13:26 +01:00
23c7c2cd4b
Update .gitignore with a bunch of files i shouldn’t commit to the repo 2023-01-31 09:12:57 +01:00
a633b2b282
Remove customizations.el
There shouldn’t be anything in there that’s not set in `configuration.org` now.
2023-01-31 09:12:56 +01:00
2e0bc3aeae Update key frequency table 2023-01-23 18:14:36 +01:00
05c965f6b9
Update key frequency table 2023-01-23 06:11:02 +01:00
c0bed0aa14
Move some custom values to configuration.org
This is in preparation to remove customizations.el from this repo (so it can act as a local
settings file).
2023-01-23 06:11:02 +01:00
fd8350162b
Add command to toggle between dark and bright modes 2023-01-22 09:01:06 +01:00
1712f89347
Load Python as an org-babel language 2023-01-22 07:49:22 +01:00
49ec8abded
Fine tune dashboard.el configuration 2023-01-22 07:49:02 +01:00
8ff7ed0c20
Move ispell/flyspell to use hunspell instead of aspell 2023-01-22 07:48:42 +01:00
ac68b3d460
Create the beginning-of-next-word function with a keybinding 2023-01-22 07:48:07 +01:00
37fca606a9
Mark the string-inflection package as installed 2022-12-18 06:22:45 +01:00
be70ba6975
Update ement settings 2022-12-18 06:22:32 +01:00
5f28d9f6a1
Update key frequency table 2022-12-18 06:21:48 +01:00
1ce3710340
Bugfix: Update transient command definitions to work with latest transient.el 2022-12-18 06:20:03 +01:00
5494a70af6
Bugfix: Fix bug-reference-bug-regexp to work with latest Emacs 2022-12-18 06:19:19 +01:00
d377bec138
Install and configure the twtxt package 2022-11-25 08:58:47 +01:00
acfab6e249
Suppress comp logs
…whatever they are 😂
2022-11-25 08:51:46 +01:00
c6db9128f5
Ignore hidden files in counsel-find-file 2022-11-25 08:51:00 +01:00
fd963e3a32
Update the achievements file so its easier to diff 2022-11-25 08:50:19 +01:00
e7ddeff8b2
Install and configure the mastodon package 2022-11-25 08:46:52 +01:00
75e9937b49
Add a key binding for gpolonkai/org-insert-current-timestamp 2022-08-18 07:22:57 +02:00
18b2932f07
Update the symbol prettifier lists 2022-08-18 07:22:06 +02:00
4e87ff3355
Adopt mbork’s copy-current-location function 2022-08-18 07:21:31 +02:00
f900ffc47d
Update the mc-lists file 2022-08-18 07:19:40 +02:00
76f8452b61
Update key frequency table 2022-04-07 16:43:53 +02:00
11592440c3
Marke the async and highlight-indentation packages as installed 2022-04-07 16:43:33 +02:00
4b1c0825f7
Stop activating cargo-mode for .rs files 2022-04-07 16:43:33 +02:00
060fbe5965
Update key frequency table 2021-11-25 11:26:14 +01:00
89434075d5
Update key frequency table 2021-11-23 12:28:45 +01:00
3ed99004c3
[Bugfix] Fix the way i set Paradox’ GitHub token
The line fetching it from password-store (which i no longer use) was still there, and there was an
extra parentheses which yielded a syntax error.
2021-11-23 12:28:45 +01:00
e47a83c023
Attempt to fix org-msg by not soading it until mu4e loads 2021-11-23 09:55:30 +01:00
ecfe42050b
Reorder installed-packages with sort-lines 2021-11-23 09:55:30 +01:00
5d6f54aa9f
Create a function (and a binding) to jump to the next occurence of a character 2021-11-23 09:55:30 +01:00
373914e084
Set Paradox’ token from authinfo 2021-11-23 09:55:30 +01:00
91cb5729ea
Update package repository links
Use HTTPS for ELPA and Org-mode, and remove Marmalade.
2021-11-23 09:55:30 +01:00
c07c352939
Remove the gitconfig-mode and gitignore-mode packages
I never really used them, and they are the only ones installed from Marmalade which has a lot of
troubles (again) nowadays.
2021-11-23 09:55:30 +01:00
61b18d17f2
Update key frequency table 2021-11-23 09:55:29 +01:00
68cd4677a9
Add the terraform-mode module 2021-10-27 16:44:24 +02:00
87199b4af1
Move from elpy to lsp-pyre 2021-10-27 16:44:22 +02:00
ea52e57932
Add the highlight-indentation module
This is extremely useful for Python development; i wonder why i didn’t have it before.
2021-10-27 16:44:20 +02:00
aa67e4897d
Add the edit-server package to allow browser text area editing 2021-10-27 16:44:19 +02:00
3389a6a514
Add the ansible module 2021-10-27 16:44:17 +02:00
1168562e70
Set the location of Ement’s token file 2021-10-27 08:06:37 +02:00
f7e4f072ca
Set up emoji font 2021-10-27 08:06:17 +02:00
8837efe7a2
Update key frequency table 2021-10-27 08:05:33 +02:00
77d292693e
Update achievements
I didn’t even realize i did this :D
2021-10-27 07:57:13 +02:00
fb36c3d755
Update key frequency table 2021-03-18 06:29:41 +01:00
c8f1876060
Update the multiple-cursor mode commands 2021-03-18 06:29:41 +01:00
990a24e391
More Mu4e/Sendmail tweaking 2021-03-18 06:29:40 +01:00
4497b54fb0
Add two new Org functions
They help me insert timestamps, which can sometimes be tedious.
2021-03-18 06:29:40 +01:00
a2164f7972
Install my own org-clock-waybar package 2021-03-18 06:29:40 +01:00
67111d7888
Install Ement
It’s a better version of matrix-client.el, let’s hope it will actually work.
2021-03-18 06:29:40 +01:00
34222ea853
Get GitHub token for Paradox from password-store instead of authinfo 2021-03-18 06:29:40 +01:00
ebc2d58aa7
Reorganize Org mode custom functions for better readability 2021-03-18 06:29:40 +01:00
c62c1ac457
Remove the gist and github-notifier packages
I no longer use these services, at least not extensively enough to have these installed.
2021-03-18 06:29:40 +01:00
3a4ed53c8a
Get rid of id-manager
I never really used it, especially since i have password-store installed everywhere.
2021-03-18 06:29:39 +01:00
30914c614a
Get WikEmacs password from password-store instead of id-manager 2021-03-18 06:29:39 +01:00
dc96bdc627
Re-introduce rainbow-identifiers 2021-03-18 06:29:39 +01:00
92bdedcfd9
Add the jinja2-mode package
For Ansible template editing; also handy for Flask template files
2021-03-18 06:29:28 +01:00
3486e44f23
Remove some unused/non-existing packages 2021-03-18 06:29:28 +01:00
53fde18b3c
Remove an unnecessary t 2021-03-18 06:29:28 +01:00
0de6506827
Remove unnecessary customizations from customizations.el
These values are already set via configuration.org, no need to set them here.
2021-03-18 06:29:27 +01:00
24d19c2e17
Disable nyan-prompt
With the latest version of eshell it stopped working. I may or may not debug it sometime later.
2021-03-18 06:29:27 +01:00
2d55aa9263
Add bats mode for shell script testing goodness 2021-03-18 06:28:43 +01:00
042bde5e88
Add paradox for more beautiful package management experience 2021-03-18 06:28:43 +01:00
86b6171a95
Add ActivityWatch
This effectively replaces WakaTime (which i don’t use anymore).  Let’s see if it’s good enough.
2021-03-18 06:28:43 +01:00
6338677620
Install Flutter-related packages 2021-03-18 06:28:43 +01:00
6961384ef2
[Refactor] Move matrix-client.el installation at the top of the file
This is an attempt to install this first, so we get dependencies right.
2021-03-18 06:28:42 +01:00
5e1bd7ce39
Update C-s experience
C-s now starts swiper, while C-r starts isearch regex forward/backward based on prefix.
2021-03-18 06:28:42 +01:00
e6dcae995b
Move from Helm to Ivy/Counsel 2021-03-18 06:27:43 +01:00
ed7d5591b6
Remove Helm functionalities i never use 2021-03-18 06:27:43 +01:00
c1a68ffee2
Disable using dialog boxes
Even though i’m so much used to using the keyboard, i sometimes click on things.  And then, these
annoying dialogs apper.  Well, not any more!
2021-03-18 06:27:43 +01:00
de2082281e
Remove org-ref
I never really used it as i don’t write actual publications.
2021-03-18 06:27:43 +01:00
136f427c01
[Bugfix] Fix configuration of dired-rainbow 2021-03-18 06:26:50 +01:00
4fc5b19d6f
Update key frequency table 2020-12-10 05:20:59 +01:00
ebc7398e39
Install clojure-mode
Clojure is the next language i want to learn.
2020-12-10 05:20:49 +01:00
e15290b262
Remove the pipenv package
I no longer use pipenv in any of my projects as i switched to poetry.
2020-12-10 05:20:48 +01:00
eb822441cc
Remove the xlicense package
It disappeared from package repositories, and i never used it anyway…
2020-12-10 05:20:44 +01:00
dd0cf05d63
[Code Cleanup] Remove duplicate dired-related package installs 2020-12-10 05:20:37 +01:00
adc23c67af
Update key frequency table 2020-12-03 13:06:43 +01:00
69f5e44ba7
Don’t turn on dired-du by default 2020-12-03 13:06:42 +01:00
45de213890
Update the Org configuration
* Enable Org Tempo to use templates, and for easier use of structure templates
* Enable checkbox dependency enforcing
* Dim blocked tasks
2020-11-05 09:25:22 +01:00
fb1f6bb3a5
Update key frequency table 2020-11-05 09:25:22 +01:00
721824bc69
Update quotation style in customizations.el
Emacs 27.1 uses `'()` instead of `(quote ())`, which is a bit more readable, so i keep it.
2020-11-05 09:25:22 +01:00
9c47543bdd
Update capitalization and some heading levels 2020-11-05 09:25:22 +01:00
8b2e5d8659
Make the prettify-symbols-mode section easier to read 2020-11-05 09:25:22 +01:00
e343fda9e1
Install the fish-mode package 2020-11-05 08:20:54 +01:00
b5f0952422
Properly bootstrap Quelpa
Instead of pulling it using `use-package`, i now bootstrap it the official way.
2020-11-01 06:07:11 +01:00
339ddf5812
Update key frequency table 2020-10-30 18:27:29 +01:00
9ae06ddf3d
Update achievements 2020-10-30 18:27:29 +01:00
b696242194
Fix the mu4e configuration 2020-10-30 18:27:29 +01:00
015b2fa5cd
Add kill-visual-line to the mc commands 2020-10-30 18:27:29 +01:00
e347177880
Install the yafolding package
It’s an unlisted dependency of ponylang-mode.
2020-10-30 18:27:29 +01:00
107869d019
Remove indent level setup 2020-10-30 18:27:29 +01:00
add1590e1d
Remove f-string font locking
It causes deep trouble with Emacs 27
2020-10-30 18:26:49 +01:00
7bbb7dab6d
Add configuration for the Rust language 2020-10-30 18:24:39 +01:00
fe33e00f82
Update xdg-paths.el to conform with the linter 2020-10-30 18:24:39 +01:00
4001fb3180
Update key frequency table 2020-06-16 06:50:53 +02:00
a651872155
Add the tidal package 2020-06-16 06:50:34 +02:00
97f8ffdb6b
Add the elpher package to browse the Gopherspace 2020-06-16 06:50:33 +02:00
93a8924d85
Remove wakatime
I want to do this for a while, as it’s pretty useless.  I can’t even brag by the numbers :D
2020-06-16 06:50:33 +02:00
63ebf14650
Add forward-sexp to the allowed MC commands list 2020-06-16 06:50:32 +02:00
9bc2fc45bf
Update key frequency table 2020-06-05 11:56:39 +02:00
4e78eefe28
Remove the unneeded gh package 2020-06-05 11:56:22 +02:00
426c22c030
Install the ox-rst package 2020-03-24 11:30:52 +01:00
445f74f210
Update key frequency table 2020-03-03 08:53:27 +01:00
d24335f94a
Update key frequency table 2020-03-03 07:57:58 +01:00
ac0cdec17f
Install the matrix-client package with quelpa-use-package 2020-03-03 07:56:29 +01:00
821bfa4eb4
Update key frequency table 2020-03-03 06:21:34 +01:00
26da644ad7
Make poetry a bit more responsive 2020-03-03 06:21:33 +01:00
ea0303af23
Unbind the C-z key
It’s rather dangerous under Sway, as i can’t restore a frame into running state after i press
it (although Emacs still happily responds).
2020-03-03 06:21:32 +01:00
72b38bc10b
Install Quelpa and quelpa-use-package 2020-03-03 06:21:31 +01:00
935b3ec857
Update key frequency table 2020-02-21 05:50:47 +01:00
38e52bb216
Fix the org-msg backend 2020-02-21 05:50:31 +01:00
ea739ab583
Update key frequency table 2020-02-17 11:59:35 +01:00
6cc2c8523f
Font lock variables in F-strings 2020-02-17 11:58:59 +01:00
cc5a216a21
Update key frequency table 2020-02-14 19:04:50 +01:00
f15ba9966a
Install the kubernetes package 2020-02-14 19:04:48 +01:00
f7e0c2b4f0
Update key frequency table 2020-02-13 09:26:11 +01:00
f273c0df6f
Move from anaconda to ElPy 2020-02-13 09:26:04 +01:00
5960b4c741
Set the mail-user-agent to sendmail 2020-02-13 09:19:45 +01:00
ed696285b8
Add the ponylang-mode package 2020-01-06 09:18:43 +01:00
2c0ff111f1
Update key frequency table 2020-01-06 09:18:42 +01:00
a7af6023ac
Update key frequency table 2019-12-12 16:08:06 +01:00
e95d823bc7
Add the mu4e-maildirs-extension package
So i know how many mails are waiting in my INBOX.
2019-12-12 16:08:05 +01:00
c2c0d7dab8
Add code snippet capturing functions 2019-12-12 16:08:04 +01:00
9953cb1f49
Add the Poetry package to a new Python menu 2019-12-12 16:07:48 +01:00
b67bc78f3f
Install the poetry package 2019-12-12 16:03:28 +01:00
62798285a8
Update key frequency table 2019-12-09 06:17:03 +01:00
86f5ad6cf8
Make Python docstring insertion a bit easier
Now point is placed between the triple quotes, and an empty line is added after the docstring block.
2019-12-09 06:17:03 +01:00
0d4169bf02
Update Org config
- Disable using only compatible dates.  Since all my machines are fine with large dates, i don’t
  really have to care.
- Add some prefixes to the Agenda listing so i know where the tasks come from
2019-12-09 06:17:02 +01:00
1e278a8540
Install speedbar and its Projectile extension 2019-12-09 06:17:01 +01:00
b6d5f61bd7
Fix the frame font setting function
The last parameter should be a list of frames instead of a single frame.
2019-12-09 06:16:26 +01:00
3f7263f2fe
Remove the unneeded smart-mode-line-light from the enabled themes list 2019-11-14 15:02:30 +01:00
f4311bca95
Configure FlyCheck to always use Python3 2019-11-14 15:00:33 +01:00
143a3b8206
Set the kill-read-only-ok variable 2019-11-14 15:00:19 +01:00
e254c61df3
Update key frequency table 2019-11-14 14:55:56 +01:00
6695666dee
Add the gnu-elpa-keyring-update package 2019-11-14 14:55:55 +01:00
1c1db6b57a
Update key frequency table 2019-11-14 14:35:23 +01:00
03f9bf002b
Remove a superfluous comment 2019-11-14 14:35:22 +01:00
14c8a85898
Make helm-c-yasnippet load only after yasnippets 2019-11-14 14:35:21 +01:00
9107b0f513
Fix the value of org-capture-templates
A `(quote)` call was missing, which resulted in an empty template list.
2019-11-14 14:35:20 +01:00
17ced28e3d
Make yasnippet-snippets load only after yasnippets 2019-11-14 14:35:19 +01:00
5970581376
Fix dependencies of org-projectile
It must load after projectile *and* org is loaded.
2019-11-14 14:35:18 +01:00
1b965738b3
Update key frequency table 2019-10-22 11:17:41 +02:00
14f03a8ac9
Install the ob-mermaid package 2019-10-22 11:17:40 +02:00
d84823b751
Update key frequency table 2019-10-22 11:02:21 +02:00
60cc73e464
Install the vue-html-mode package 2019-10-22 11:02:02 +02:00
405012f576
Reinstall the org-bullets package 2019-10-22 11:01:47 +02:00
3d795af2ab
Install the ob-restclient package 2019-10-22 11:00:00 +02:00
9a0e5e2635
Update the org-projectile configuration
Add a key binding, and set the path of the TODO file
2019-10-22 10:50:26 +02:00
e3b3498148
Set org-directory as early as possible 2019-10-22 10:48:53 +02:00
83f2aec4ae
Update Org config to use :custom instead of setq calls 2019-10-22 10:48:52 +02:00
5326b1a250
Pimp dired a bit 2019-10-22 10:48:51 +02:00
83e33f9135
Move prerequisite loading before the configuration part 2019-10-22 10:48:50 +02:00
885219a7ac
Move load-path manipulation to the beginning of the configuration 2019-10-22 10:48:50 +02:00
f97a40dcee
Update key frequency table 2019-09-23 13:55:58 +02:00
eade4a285e
Add helm-core to the installed package list 2019-09-23 13:55:57 +02:00
a16687e802
Continue moving Org settings to the use-package :custom block 2019-09-23 13:55:56 +02:00
d3ebe65a15
Fix dired-rainbow configuration 2019-09-23 13:55:55 +02:00
8af4b34021
Add backward-sexp to the multiple-cursors command list 2019-09-23 13:55:54 +02:00
4b0e13429c Update key frequency table 2019-09-10 06:36:46 +02:00
f6f83d6b15 Add the arduino package for better support for Arduino source files 2019-09-10 06:36:34 +02:00
a3362e7bbe Add customizations for the bug-reference package 2019-09-10 06:36:34 +02:00
cf9dd26378 Fix whitespaces in xdg-paths.el 2019-09-10 06:36:33 +02:00
26a65a7bd4 Add packages to support GitLab CI config editing 2019-09-10 06:36:33 +02:00
9b2e7599f3 Add graphql package for GraphQL file editing support 2019-09-10 06:36:33 +02:00
71b9e998f2 Add Helm interface for pass (Password Store) 2019-09-10 06:36:33 +02:00
1579b921e8 Filter SOMEDAY items out from the org-random-todo list 2019-09-10 06:36:32 +02:00
c111714f84 Pimp Org with helm-org and helm-org-rifle
I’m not sure if i’ll use either of them, though…
2019-09-10 06:36:32 +02:00
3d9a35f7f3 Pimp dired a bit 2019-09-10 06:36:32 +02:00
f59b86fb69 Remove real-auto-save-mode
It caused more pain than good…
2019-09-10 06:36:31 +02:00
43838095ed Update custom values 2019-09-10 06:36:31 +02:00
b776127e4c Update Org config to use :custom instead of setq calls 2019-09-10 06:36:30 +02:00
42750c7e05 Fixup for the forge package install 2019-09-09 18:19:57 +02:00
82ce975d95 Indentation and typo fixes 2019-09-09 18:19:57 +02:00
1df32079f1 Update key frequency table 2019-04-01 08:00:59 +02:00
ab29d5d2f5 Set org-log-note-clock-out to non-nil
So i can log some thoughts when clocking out from a task.
2019-04-01 08:00:59 +02:00
94ffcbe4ef Remove fci-mode 2019-03-29 10:30:54 +01:00
12e54cb7d7 Add mouse binding for multiple-cursors 2019-03-29 10:23:42 +01:00
f65cb6842e Update key frequency table 2019-03-29 10:22:07 +01:00
86d12abcaf Update key frequency table 2019-03-29 07:52:30 +01:00
d4fca38e9e [Bugfix] Make gpolonkai/set-font-size and --set-emoji-font work for text frames 2019-03-29 07:52:30 +01:00
1ce77f27c3 Update key frequency table 2019-02-28 18:02:38 +01:00
8876104c2d Update key frequency table 2019-02-22 07:27:14 +01:00
32759d1544 Convert setq calls of customisable variables to customize-set-variable calls
Well, most of them. Some are a bit harder to do so i leave them for later.
2019-02-22 07:27:14 +01:00
8ab669205c Minor code cleanup in gpolonkai/enclose-region 2019-02-22 07:11:10 +01:00
00dcbdd2ea Make use-package less verbose
It’s awesome how much it speeds up my Emacs startup.
2019-02-22 07:11:10 +01:00
829e433203 Stop highlighting trailing whitespace in mail buffers 2019-02-22 07:11:10 +01:00
ca62086ff2 Make mu4e not ask for confirmation upon quit 2019-02-22 07:11:10 +01:00
03f3c4ec78 Make it possible to insert the current filename at point 2019-02-19 15:34:03 +01:00
74922ec587 Handle org-protocol:// links 2019-02-19 15:34:03 +01:00
1f03365d28 Update key frequency table 2019-02-19 15:34:03 +01:00
531baf094a Update key frequency table 2019-02-19 15:30:55 +01:00
b3cc6bd29c Create my own Transient command
It’s presented as a nice menu, and will most probably take over my personal keymap soon.
2019-02-19 15:30:45 +01:00
482173351c Update key frequency table 2019-02-19 11:05:55 +01:00
180ae79080 [Refactor] Use expand-file-name instead of concat where possible 2019-02-19 11:05:55 +01:00
f05711f5bf Update capture templates
* The indentation of the Blog and GT2 note templates are now better
* The GT2 note template now includes the currently stored link
2019-02-19 11:05:55 +01:00
9a92b7b061 Move some URLs to SOURCE properties 2019-02-19 11:05:55 +01:00
0836515690 [Doc] Change docstring of camel-case-to-snake-case 2019-02-19 11:05:55 +01:00
8320e5708a [Refactor] Refactor enclose-region
Now it doesn’t create unnecessary global variables.
2019-02-19 11:05:55 +01:00
aa6e8495de Fix indentation and custom variables setting for use-package loading 2019-02-19 11:05:55 +01:00
e685c66f0e Update key frequency table 2019-02-19 10:49:17 +01:00
194fc2d810 Make mu4e use helm as a completion read function 2019-02-19 10:49:17 +01:00
a2eb2c48d7 Update key frequency table 2019-02-14 19:40:53 +01:00
1b7ea5bb11 Don’t ensure the po-mode package
It is installed from a system package on all my machines, so there’s no need to
fetch it from MELPA.
2019-02-14 19:35:33 +01:00
bcaedd15e9 Configure mu4e to be used with Org 2019-02-14 19:35:33 +01:00
5f5a862ec0 Enable electric-operator mode for Python 2019-02-14 19:35:33 +01:00
897ba7b9c0 Update key frequency table 2019-02-04 11:03:33 +01:00
1cd9441a06 Apply font size changes on startup 2019-02-04 11:03:10 +01:00
23cb143ce7 Properly customize ispell 2019-02-04 11:03:10 +01:00
046cd47381 Configure the golden-ratio package 2019-02-04 11:03:10 +01:00
e03f684688 Remove newsticker configuration
I never really used it anyway…
2019-02-04 10:58:24 +01:00
2875047f78 Update key frequency table 2019-02-04 10:47:20 +01:00
f0ae6a5d50 Change the outline header faces so it stands out more 2019-02-04 10:45:45 +01:00
f197b35369 Configure the org-sticky-header package
It looks really nice; also, it helps knowing where i am standing in the tree.
2019-02-04 10:44:28 +01:00
e7683a46af Don’t start whitespace-mode in Org mode
It doesn’t look too good anyway; also, it messes up my new custom faces soon to be introduced…
2019-02-04 10:44:28 +01:00
d989f99386 Update key frequency table 2019-01-03 16:27:10 +01:00
b57f0ce21f Update projectile configuration 2019-01-03 16:26:49 +01:00
90d936fe37 Add ace-mc key bindings 2019-01-03 16:26:49 +01:00
da59337f76 Configure the forge package
It will need a lot of fine tuning, though.
2018-12-22 15:14:00 +01:00
766b3e7345 Enable form-feed-mode for Help buffers 2018-12-22 15:14:00 +01:00
df0ad8a926 Update key frequency table 2018-12-22 15:14:00 +01:00
04f853115d Update key frequency table 2018-12-10 13:08:53 +01:00
b32497a93e Further customisations for wdired 2018-12-10 13:05:44 +01:00
7953490224 Update key frequency table 2018-12-10 08:27:58 +01:00
99e39400de Move package.el initialisation to configuration.org 2018-12-10 08:27:41 +01:00
35fa82c5a2 Configure the org-msg package 2018-12-10 08:27:41 +01:00
9b39308367 Configure the org-autolist package 2018-12-10 08:27:41 +01:00
6e492224ca Update key frequency table 2018-12-03 09:59:39 +01:00
ee67921db1 Set the height of Moody mode-line to a more pleasing value 2018-12-03 09:59:39 +01:00
518a1a7ac6 [Bugfix] Fix variable name in gpolonkai/save-killed-buffer-filename 2018-12-03 09:59:39 +01:00
cf216711e6 Try to rely less on the current graphics mode 2018-11-30 10:11:08 +01:00
92b669771c Update key frequency table 2018-11-30 10:11:08 +01:00
b7bbaa1060 Configure the docker-tramp package 2018-11-30 09:27:57 +01:00
2e58114038 Make Nyan’s trail a bit shorter
…so it fits on my portrait screen.
2018-11-30 09:27:57 +01:00
ca4ecfc231 Reinstall fill-column-indicator
I found some advice (pun intended) on how to make it work with `avy`.
2018-11-30 09:27:57 +01:00
3400df2052 Switch back from spaceline to Moody
I found some hints on how to make it look better, so it’s time to activate it again!

A bit more customisation might be needed, though, as i find it too wide for my taste…
2018-11-30 09:27:57 +01:00
23c0b74213 Update key frequency table 2018-11-27 06:12:45 +01:00
7a0b358b70 Add new key bindings
`M-g C` is now `avy-goto-char-2`, `C-c ;` is now `org-toggle-timestamp-type`.
2018-11-27 06:12:45 +01:00
9b8a3d06f6 Get rid of helm-mu
It doesn’t activate where i actually wanted it to, and where it does, it doesn’t help much.
2018-11-27 06:12:45 +01:00
77e5d79a5c Update key frequency table 2018-11-23 15:45:16 +01:00
81f10ed017 Fine-tune key chords for org capture and clocking 2018-11-23 15:45:16 +01:00
84a6c6faa4 Add capture templates for adding notes to the current task 2018-11-23 15:45:16 +01:00
ded451df29 Activate form-feed mode for compilation-mode 2018-11-23 15:45:16 +01:00
f39ca8b6da Fix some styling issues 2018-11-21 14:01:19 +01:00
fecb782d83 Remove org-bullets
I don’t really use it, and it doesn’t look as good as i imagined.
2018-11-21 14:01:19 +01:00
3b968986b2 Unify hook modifications
Now i use `add-hook` only if not within a `use-package` block; otherwise, i use `:hook`.
2018-11-21 14:00:40 +01:00
8b560b69f4 [Cleanup] Move eshell-C-d inside the eshell configuration block 2018-11-21 14:00:40 +01:00
cd733501e6 Configure CalDAV access for Org 2018-11-20 15:17:41 +01:00
024cf82646 Update key frequency table 2018-11-20 14:02:02 +01:00
9d1a01c2cc Configure the ciel package 2018-11-20 14:02:02 +01:00
fbb74c1c29 Add helm completion for mu4e
It still can’t do everything; e.g. i still have to use ~ido~ when selecting a folder to open.
2018-11-20 14:02:02 +01:00
9f69074b88 Add subdirectories of /usr/local/share/emacs/site-lisp to load-path
On systems that don’t have mu/mu4e as a package (e.g. Fedora 29), it is manually installed at this
place.
2018-11-20 14:02:02 +01:00
7b241cbd51 Move Org directory to NextCloud
It’ll be easier to sync this way.
2018-11-19 15:22:53 +01:00
fb3f9f899e [Bugfix] Demand loading objed
It seems lazy loading of it doesn’t really work.
2018-11-19 15:22:29 +01:00
43345648f8 Move from Wanderlust to mu4e
That was a short love story of ours…
2018-11-19 14:40:55 +01:00
e5f65f504c Set up the sphinx-doc package 2018-11-19 14:34:35 +01:00
5c36ad7653 Fix the SOMEDAY task definition
* Make it golden, so it stands out a bit
* Make it actually work (the definition had an extra space at the end)
2018-11-19 14:34:01 +01:00
dd356caee6 Filter out SOMEDAY items from the agenda
These are things that i may or may not do.
2018-11-19 14:33:24 +01:00
58da43d685 Bind display-line-numbers-mode to a pers-map key 2018-11-19 13:03:14 +01:00
1787aca026 [Bugfix] Fix running condition and loading of real-auto-save 2018-11-19 13:02:56 +01:00
088e0225bf Fix a source link 2018-11-19 11:02:19 +01:00
86e67f1267 Configure the pacfiles package
It helps a lot during big Arch upgrades.
2018-11-19 09:47:43 +01:00
ce1126ab75 Configure usage of the real-auto-save package 2018-11-19 09:45:45 +01:00
642979d69d Update key frequency table 2018-11-19 08:53:27 +01:00
c8063a400d Update keyfreq table 2018-11-19 07:57:37 +01:00
39d27f11d0 Add new yasnippet for Python unittesting 2018-11-18 07:19:14 +01:00
4700c2e2a4 Update key frequency table 2018-11-18 07:19:14 +01:00
c4c1dfdaea Update key frequency table 2018-11-18 07:14:59 +01:00
9457b3a4c7 Create a more beautiful (and hopefully more helpful) agenda view 2018-11-18 07:14:59 +01:00
2053c10572 Tweak Org’s refile settings 2018-11-18 07:14:59 +01:00
2d33f19560 [Bugfix] Fix Org key binding that jumps to previous heading
As it turns out, org-mode-map is a global map, not the map under C-c.
2018-11-18 07:14:59 +01:00
34e6edc79a Switch from smart-mode-line to spaceline
It looks much more beautiful.

With this, i also ditch my header line. Spaceline is really efficient with using modeline space
without using that.
2018-11-18 07:14:59 +01:00
ea6f21f305 Remove the use of agenda_files
For now it seems much more productive to include all my Org files in the agenda.
2018-11-18 07:14:59 +01:00
a5868ab0b3 Remove org-mobile specific settings
I no longer use org-mobile
2018-11-18 07:14:59 +01:00
3689850eeb Switch from drag-stuff to objed 2018-11-18 07:14:59 +01:00
8717652579 Get rid of Diminish
Minions is much more helpful.
2018-11-18 07:14:59 +01:00
9ebc009876 Update key frequency table 2018-11-13 15:03:30 +01:00
5dfe9ec966 Install the loccur package 2018-11-13 15:03:05 +01:00
c47fb8ee37 Update key frequency table 2018-11-05 09:07:36 +01:00
7bad24141b Install the editorconfig package 2018-11-05 09:07:15 +01:00
1eabbb4c17 Fine tune Org configuration 2018-11-05 09:07:15 +01:00
203bb554c5 Move Wanderlust configuration from :config to :init
For some reason WL doesn’t pick up these values if set from :config
2018-11-05 09:05:46 +01:00
c399805709 Update key frequency table 2018-11-04 07:16:09 +01:00
1f348f07d3 Update achievements 2018-11-04 07:16:09 +01:00
80d106d9f1 Fine tune Org settings 2018-11-04 07:16:09 +01:00
035be3724d Add new key bindings
* move to the previous Org heading with C-c h
* open `calc` with C-t C-c
2018-11-04 07:16:09 +01:00
6e737645b6 Make note state keywords a bit more fancy 2018-11-04 07:16:09 +01:00
0bc334af69 Add the SOMEDAY Org state
It looks better than TODO, which should be reserved for actual things to do.
2018-11-04 07:16:09 +01:00
62d9228650 Enable midnight-mode
Right now it only closes some old buffers.  Maybe i’ll add more stuff later.
2018-11-04 07:16:09 +01:00
280f1168b5 Update keyfreq table 2018-10-19 09:35:22 +02:00
8ea3b28bea Add "jinja" as a safe value for engine 2018-10-19 09:35:08 +02:00
18749a67e8 Remove a useless comment 2018-10-19 09:26:16 +02:00
14d445ccf3 Add server mode to the end of the configuration 2018-10-19 09:26:04 +02:00
60d61f1f4c Highlight checkboxes in Org mode
Checked and unchecked checkboxes will have the same color as the DONE and TODO keywords, respectively.
2018-10-19 09:25:16 +02:00
08e7ad233f Fix keybinding of Wanderlust 2018-10-19 09:24:14 +02:00
6108a1a14b Fix secretaria config
The function used in `after-init-hook` (`secretaria-today-unknown-time-appt-always-remind-me`) has
been removed, and a new one is suggested in the documentation.
2018-10-19 09:23:03 +02:00
a50ef8e702 Update achievements 2018-10-04 09:28:35 +02:00
f43505331d Update key frequencies 2018-10-04 09:28:35 +02:00
0c72f904b9 Install the minions package (and disable ace-popup-menu) 2018-10-04 09:28:35 +02:00
92951f82c9 Update theme list 2018-10-04 09:28:35 +02:00
1dbda736bb Explicitly load the tango-dark theme 2018-10-04 09:28:35 +02:00
f52461117e Fix the Org capture template definitions 2018-10-04 09:28:35 +02:00
164dd2edae Set up Wanderlust 2018-10-04 09:28:35 +02:00
e59566d7ef Set the mail sending function to sendmail-send-it
This requires an MTA to be configured on the hosts, but it doesn’t really matter.
2018-10-04 09:28:35 +02:00
a1086d211f Add org-force-self-insert to the allowed mc commands 2018-10-04 09:28:35 +02:00
fbb7b76bbd Configure the built-in goto-addr package 2018-10-04 09:28:34 +02:00
d13f273a24 Remove my personal kill-this-buffer and kill-this-buffer-delete-this-window functions
`(gpolonkai/kill-this-buffer)` just saved the filename of the killed buffer so it can be reopened
with `(gpolonkai/undo-buffer-kill)`.

`(gpolonkai/kill-this-buffer-delete-this-window)` is the same as the built-in
`(kill-buffer-and-window)` command, with a convenient enough key binding.
2018-10-04 09:28:34 +02:00
78ba87b5a1 Make font sizes consistent between frames 2018-10-04 09:28:34 +02:00
5e057573ce Update key/command frequencies table 2018-09-10 09:20:08 +02:00
d1af1a6f42 Set epg’s GPG path to gpg2 2018-09-10 09:19:56 +02:00
2ba993bf2e Add some new functions
* Run function on a region of text
* Mark text as translatable by Jinja
* URL encode/decode text
2018-09-06 14:04:55 +02:00
9c8b47b54b Update installed package list in cust.el 2018-09-03 14:47:00 +02:00
a500f5541c Update achievements 2018-09-03 14:47:00 +02:00
80a665a3fb Create Python script to automatically resolve merge conflict in keyfreq 2018-09-03 14:47:00 +02:00
bfca543ede Update achievements 2018-09-03 14:47:00 +02:00
187cf71459 Update keyfreq file 2018-09-03 14:47:00 +02:00
5e66089252 Update multiple-cursors command list 2018-09-03 11:47:56 +02:00
ae6c01f729 Update key frequencies 2018-08-29 14:47:47 +02:00
4a4a93de02 Fix electric-operator config so it works with the newest version 2018-08-29 14:47:47 +02:00
7eb110756d Update the achievements file 2018-08-29 14:47:47 +02:00
6b7b2d67c6 Make sure the Nyan prompt in eshell always works 2018-08-28 18:13:26 +02:00
84e1b7ab32 Increase font size
I’m getting old…
2018-08-28 18:12:38 +02:00
6c979180f0 Add helm-mode-insert-file to gpolonkai/helm-ff-slash-dir-complete 2018-08-28 18:11:49 +02:00
7f8652db3d Add the org-projectile-helm packace 2018-08-28 18:11:17 +02:00
73277ccf79 Update installed package list in customizations.el 2018-08-28 18:10:50 +02:00
acacdb31b5 Add the meson-mode package 2018-08-28 18:06:22 +02:00
3f15bc72cf Add the go-mode package 2018-08-28 18:06:02 +02:00
dc502b59f1 Add the csv-mode package 2018-08-28 18:05:26 +02:00
930db8aaeb Update achievements 2018-08-16 13:45:39 +02:00
f0e974b8d6 Add the bookmarks file to .gitignore 2018-08-16 13:45:39 +02:00
fcbbd625e2 Update installed package list in customizations.el 2018-08-16 13:45:39 +02:00
b52da15515 Disable key bindings suggestion
Helm tells me the key bindings anyway
2018-08-16 13:45:39 +02:00
c3e5d8838a Enable al the commands 2018-08-16 13:45:39 +02:00
e4749244f3 Add key bindings for achievements and keyfreq 2018-08-16 13:45:39 +02:00
88a978424d Add the key frequency file to the tree 2018-08-16 13:45:39 +02:00
fc0bf5e033 Update score files 2018-08-16 13:45:39 +02:00
988b909879 Add keyboard shortcut for switching to wdired mode 2018-08-13 07:33:58 +02:00
d38af81116 Fix the achievements file
I don’t really know what happened to it, but it got messed up big time…
2018-08-13 07:33:35 +02:00
6a7a2f2202 Add the delight package 2018-08-10 07:16:45 +02:00
17e3b2d364 Make sure point can’t enter the minibuffer prompt 2018-08-09 13:49:03 +02:00
21604ca994 Refactor configuration of Org-mode
Now everything is set during :init (which may or may not be a good idea.)
2018-08-09 13:48:27 +02:00
a64603bad9 Add some dired customisations 2018-08-09 13:48:01 +02:00
085355abef Enable some more commands 2018-08-09 13:24:38 +02:00
681ef586c8 Make sure the language environment is always UTF-8 2018-08-09 13:24:25 +02:00
f5980d6936 Update achievements 2018-08-09 10:36:50 +02:00
71a5897766 Add an alias file for EShell 2018-08-07 14:34:10 +02:00
badabaac1e Add the keyfreq package 2018-08-07 14:33:44 +02:00
05e491cbbf [Bugfix] Fix the backup file name generating function 2018-08-07 14:33:32 +02:00
91113931c7 Bind my personal keymap to C-t
I don’t use `transpose-chars` that often, so it can go to `M-t c`.
2018-08-07 14:32:25 +02:00
ecafe2aed6 Update the multiple-cursors command list 2018-08-07 14:32:10 +02:00
7e53524636 Update achievements 2018-08-07 14:30:16 +02:00
0bb9434604 Updated achievements file format 2018-08-06 09:17:08 +02:00
dcd6562be0 Assign a better (or at least working) key to expand-region
I still wonder why C-@ didn’t work.
2018-08-06 08:27:51 +02:00
84d3495ac3 [Bugfix] Enable save-place-mode correctly in Emacs >25.0 2018-08-06 08:27:51 +02:00
96493792a3 Save backup files under Emacs’ cache directory 2018-08-06 08:27:51 +02:00
fa6d517fe0 Add Nyan-prompt back to the config
Even though its license is not GPL compatible (thus, will never get back to MELPA), it’s still
free to use.
2018-08-06 08:27:51 +02:00
0eadf9e2df Make C-x t o i open the Org config instead of init.el
init.el holds only very basic things now, there’s no use to have a binding for opening it.
2018-07-30 22:25:16 +02:00
aea81c260f Add key binding for ace-mc 2018-07-30 22:22:52 +02:00
dddd552945 Explicitly install the ace-jump-mode package
It was already installed as a dependency, but now I even add key bindings.
2018-07-30 22:18:37 +02:00
156fefb113 Add the pipenv package 2018-07-30 22:10:17 +02:00
da6d4600f2 Remove my old add-gnu-c-header function
It is superseded by `xlicense`.
2018-07-30 21:18:17 +02:00
5e517f5975 Remove all remaining, unused packages 2018-07-30 21:18:17 +02:00
b6a6bd938a Move everything else to the Org config 2018-07-30 21:18:16 +02:00
50ec5643de Move functions from round-number-to-decimals.el to the Org config 2018-07-30 21:18:16 +02:00
38dd27dc1e Move window manipulation functions to the Org config 2018-07-30 21:18:16 +02:00
dea44d7d39 Move commands from zim.el to the Org config 2018-07-30 21:18:16 +02:00
86bd417b99 Remove unused packages 2018-07-30 21:18:16 +02:00
239e1742a4 Continue moving to the Org config 2018-07-30 21:18:16 +02:00
329a86937d Move some packages to the Org config 2018-07-29 20:52:12 +02:00
8f4232063a Nyanyanyanya Move Nyancat related packages to the Org config 2018-07-29 20:52:12 +02:00
7ff80992b8 Remove unused packages 2018-07-29 20:52:12 +02:00
1964dd4085 Move Helm and related packages to the Org config 2018-07-29 20:52:12 +02:00
b6cac3a5f1 Load XDG paths in the Org config 2018-07-29 20:52:12 +02:00
50707c11a5 Move built-in package configurations to the Org config 2018-07-29 20:52:12 +02:00
77236cbea7 Move mode-specific use-package calls to the Org config 2018-07-29 20:52:12 +02:00
e91a08594e Move nil-or-list-of-strings-p to the Org config 2018-07-29 20:52:12 +02:00
7b4a464f02 Move functions from text-manip to the Org config 2018-07-29 20:52:12 +02:00
25644dc064 Move functions from prog.el to the Org config 2018-07-29 20:52:12 +02:00
ccaeda71c2 Delete package-manip.el
The functions inside are superseded by `auto-package-update`.
2018-07-29 20:52:12 +02:00
1cc81ac9d3 Move idm related functions to the Org config 2018-07-29 20:52:12 +02:00
7ee19f492a Move hidden-mode-line-mode to the Org config 2018-07-29 20:52:12 +02:00
372df13155 Move functions from file-manip.el to the Org config 2018-07-29 20:52:12 +02:00
d52a110acb Move æ-enclose-region to the Org configuration 2018-07-29 20:52:12 +02:00
46d7a1a731 Move functions from buf-manipulation.el to the Org config 2018-07-29 20:52:12 +02:00
c16ff8cbc0 Start moving to an Org-based config 2018-07-29 19:57:48 +02:00
a0df2bbc2b Set org-special-ctrl-a/e to true 2018-07-28 10:31:07 +02:00
ef96fcc0db Add snippet for the AGPL header 2018-07-25 15:39:59 +02:00
0e35fb559c Enable web-mode engine detection 2018-07-25 15:38:22 +02:00
0300be5ca4 Add the emmet-mode package 2018-07-25 15:38:22 +02:00
6e1e28b50b Add the yasnippet-snippets package 2018-07-25 15:38:22 +02:00
81fb595ca8 Enable slash completition in the magit-status helm window 2018-07-25 07:38:47 +02:00
07487c356d Install the neotree package 2018-07-25 07:38:46 +02:00
469ac1ece4 Remove the fillcode package
I don’t use it, like ever.
2018-07-25 07:38:46 +02:00
64aaf20258 Add keyboard shortcut for whitespace-cleanup 2018-07-25 07:38:46 +02:00
bfbcb4750e Remove use-package pinning
It looks like use-package doesn’t support pinning anymore.
2018-07-25 07:38:46 +02:00
eeb501ce9e Move nil-or-list-of-strings-p to a separate package 2018-07-25 07:38:34 +02:00
4a9cfddc6b Add downcase-region to the multiple-cursors command list 2018-07-25 07:38:29 +02:00
2201f35f3f Make Company’s dabbrev backend case sensitive 2018-07-04 11:31:41 +02:00
22e5b05af3 Fix a docstring 2018-07-02 09:51:09 +02:00
6d3e1f56fc Use cl-subseq instead of subseq 2018-07-02 09:51:09 +02:00
21c227eff4 Use which-function-mode instead of deprecated which-func-mode if available 2018-07-02 09:51:09 +02:00
fc99d577fa Mark company-clang-arguments as a safe local variable 2018-07-02 09:51:07 +02:00
a2e7c80eeb Move alert from notifications (direct DBus) to libnotify
It means an external process for every notification, but DBus seems to be veery slow.
2018-07-02 09:50:14 +02:00
2b662b3bba Add a better(?) key binding for toggle-char-case 2018-07-02 09:50:14 +02:00
cf978b2aee Add drag-stuff-down to multiplecursor’s list 2018-07-02 09:50:14 +02:00
e3ea5d1ac3 Add overwrite-mode to the list of mc commands 2018-07-02 09:50:14 +02:00
9e9d85729b Update safe local variable list 2018-06-12 15:07:25 +02:00
fe677cbd77 Customize set scroll-margin to 2 2018-06-12 15:07:25 +02:00
0c1d583f6f Update C indenting configuration 2018-06-12 15:07:25 +02:00
a8ee730a3d Add key for repeat 2018-06-10 08:22:31 +02:00
21189806fa Add cursor color changing hook to the proper place 2018-06-10 08:21:50 +02:00
4803515967 Remove the hyde package 2018-06-10 08:20:58 +02:00
29e6f64eec Style fix 2018-06-10 08:20:30 +02:00
2fb7ca86f0 Change origami’s prefix to C-x z 2018-06-10 08:08:31 +02:00
1139263b74 Update installed-packages list 2018-03-19 15:54:03 +01:00
54a18620ba Add c-electric-colon to multiple-cursors commands 2018-03-19 15:54:03 +01:00
ee04a9828f Remove package flymake-python-pyflakes
I don’t use it anymore
2018-03-19 15:54:03 +01:00
489591702b Add a function to easily swap strings in a file 2018-03-19 12:12:52 +01:00
dbe501a258 Add a function to convert CamelCase to snake_case 2018-03-19 12:12:29 +01:00
c4aff57910 Add bug-reference-bug-regexp to safe local variables 2018-03-19 12:12:06 +01:00
a22d4fc64e Add yaml-electric-backspace to multiple-cursors commands 2018-03-19 12:09:56 +01:00
7aa17bdfcc Update personal Lisp files so elint is happy 2018-03-19 12:08:01 +01:00
2972e061a1 Disable whitespace-mode in magit-derived modes 2018-03-19 11:38:11 +01:00
e144524676 Load the XDG path package
It *should* work without it, but it doesn’t.
2017-11-29 13:55:50 +01:00
e1442a815f Add Swagger tools to flycheck 2017-11-29 13:52:07 +01:00
da2d472074 Add Reptile Awareness Day to the holiday list 2017-11-29 13:52:06 +01:00
547d141abd Make Org mode start indented 2017-11-29 13:52:06 +01:00
3bf2033198 Add custom YAS snippets 2017-11-29 13:52:06 +01:00
55432dbda0 Update mc commands list 2017-11-29 13:52:06 +01:00
99ba501dc5 Make my init comply with Emacs standards 2017-11-29 13:52:06 +01:00
17ec3180de Add key bindings to browse-url-at-point and clean-buffer-list 2017-11-29 13:52:06 +01:00
806738691e Globally enable flycheck-mode 2017-11-29 13:49:15 +01:00
ad1b39cc9e Set org-tags-column to 0
This is needed so Orgzly doesn’t mess up my files.
2017-11-08 08:25:41 +01:00
ee8aa62c97 Add the undo-tree package 2017-11-08 08:24:22 +01:00
8d74c2966c Enable company popup even when there is only one candidate 2017-11-08 08:21:22 +01:00
e76f116612 Pin projectile to MELPA Stable 2017-11-08 08:19:46 +01:00
2d12ffd041 Disable auto indentation in web-mode 2017-10-02 13:44:02 +02:00
792979a6f0 Add the fillcode package 2017-10-02 13:44:02 +02:00
33fe8aea63 Add the fancy-narrow package 2017-10-02 13:44:02 +02:00
ff8d3f0cfd Remap expand-region to a more usable key 2017-10-02 13:44:02 +02:00
fcab5e58d9 Revert "Change to light background mode"
This reverts commit 3681ebf909.
2017-10-01 14:07:46 +02:00
3d3ca79fc1 Log Org state changes to a drawer 2017-10-01 13:20:46 +02:00
bbcabf3c74 Add YASnippets for Flask-SQLAlchemy models
…both normal and translatable
2017-09-25 11:26:31 +02:00
620bc853f7 Fix org config
`file+datetree` is now obsolete, `file+olp+datetree` is to be used instead.
2017-09-25 11:09:05 +02:00
c707f975e1 Remove Tab-unbinding from yasnippet config
It got fixed upstream, so it can be safely used now.
2017-09-25 11:08:40 +02:00
88db7d8ee6 Fix the cursor setting when a snippet is available 2017-09-25 11:07:02 +02:00
535617dde3 Add key binding for ag-project 2017-09-22 13:48:32 +02:00
58c254c89c Update the mc command list 2017-09-18 15:35:00 +02:00
64cd989f82 Change maximum line length from 80 to 100 2017-09-18 15:35:00 +02:00
5830f59c46 Remove set-goal-column from the disabled commands list 2017-09-18 15:35:00 +02:00
c7b6c634d9 Remove ELPA files from the recentf list
It just provides clutter…
2017-09-18 15:34:46 +02:00
ef2531137c Disable nyan-mode
It is removed from MELPA due to linense issues.  Let’s hope it will come back.
2017-09-18 15:34:46 +02:00
3681ebf909 Change to light background mode 2017-09-18 15:34:45 +02:00
ae9404f571 Add helm-bibtex and org-ref packages 2017-09-18 15:34:45 +02:00
540f027b47 Add the feature-mode package 2017-08-22 00:13:15 +02:00
81afeda0b5 Fix for moving to eloctric-operator 2017-08-07 22:41:26 +02:00
776ab5caf4 Update Org config 2017-08-07 10:44:24 +02:00
d6b15f0498 Update achievements 2017-08-07 10:44:24 +02:00
fc012859cd Add SysAdmin Day to the calendar 2017-08-07 10:44:24 +02:00
1b2f60d236 Add shortcut for bury-buffer 2017-08-07 10:44:24 +02:00
6a4a3ce871 Remove the magithub package
I don’t use it that often; also, it has more bugs than what is confortable
recently.
2017-08-07 10:44:24 +02:00
9121f83c62 Update multiple-cursor commands 2017-08-07 10:44:24 +02:00
9cf095303a Add function to prettify symbol list 2017-08-07 08:30:39 +02:00
0be142e232 Switch from electric-spacing to electric-operator
It’s more reliable, and it doesn’t mess up operator characters within
strings.  It has its own quirks, though.
2017-04-20 15:52:09 +02:00
0b431b5228 Update the header line a bit more
Moved some elements from the mode line to the header line.  Now only design remains.
2017-04-20 15:51:22 +02:00
4cbebe800b Move multiple-cursors key bindings to a separate prefix map
It becomes a prefix map anyway, but it’s much easier to rebind later if the
need arises.
2017-04-20 15:51:21 +02:00
ce943b24ae Add some help commands to find function/variable declarations 2017-04-20 15:50:40 +02:00
88ae0712fc Remove magit-gerrit from the configuration
I don’t use Gerrit anymore
2017-04-20 15:50:40 +02:00
3ceaf233fd Load thingatpt with use-package
It was not a problem, just let’s be consequent.
2017-04-20 15:50:10 +02:00
d8bcdd0272 Move email address to customizations 2017-04-20 15:50:10 +02:00
3fbee21d44 Add the less-css-mode package 2017-04-19 21:57:15 +02:00
224f200756 Clean up :ensure clauses in use-package calls
As `use-package-always-ensure` is `t`, we don’t need all these lines (but we
need an extra `:ensure nil` for builtins.
2017-04-19 21:57:01 +02:00
f9d430ff8b Switch regex/normal search bindings and add key for org-store-link 2017-04-17 23:10:25 +02:00
714f521038 Add sp-kill-hybrid-sexp to mc allowed command list 2017-04-12 09:17:14 +02:00
41958481ce Add CANCELED state to org-todo-keywords 2017-04-12 09:17:14 +02:00
b374797da4 First attempt to create a meaningful header line 2017-04-12 09:13:16 +02:00
ae782bc170 Make browse-url work in Termux
To do so, we override the `browse-url-default-browser` command.  It’s a
shame there is no better way to do it.
2017-04-12 08:49:08 +02:00
d0ec63b872 Make sure secretaria is loaded after alert
I’m not sure it is actually needed, but it’s better to be safe than sorry.
2017-04-12 08:41:19 +02:00
c50195261d Setup alert.el based on the terminal type
If running under Termux, use the `termux` alert style; otherwise, use
`notifications`.
2017-04-12 08:30:42 +02:00
b3c87b5d9a Change wakatime executable path to be dynamic
It now uses `executable-find` instead of a hardcoded path.
2017-04-12 07:59:06 +02:00
334fef4f42 Create the function termux-p
It can decide if we are running under Termux.
2017-04-12 07:59:05 +02:00
63e8cd46a8 Add :ensure nil to use-package calls that load built-in packages 2017-04-07 18:26:36 +02:00
91d93e5c39 Add the secretaria package 2017-04-07 18:24:56 +02:00
a4e62ac605 Auto-enable rainbow in CSS & Co. modes 2017-04-07 18:24:55 +02:00
74176aa6a5 Change cursor color when Yasnippet can be fired 2017-04-07 18:24:24 +02:00
61a95107de Pin use-package to melpa-stable 2017-04-05 14:22:51 +02:00
8f9554007c Set use-package-always-ensure to t 2017-04-05 14:22:51 +02:00
5fb497548a Add c-electric-paren to mc commands 2017-04-05 14:22:51 +02:00
1d0834fae4 Rebind helm-company to C-c j
C-S-j was not Termux (and finger) friendly.
2017-04-04 22:28:05 +02:00
d162a66b94 Make slash complete directory names in helm-find-file 2017-04-04 22:27:59 +02:00
2191b1ac64 Move round-number-to-decimals binding to init.el
It is nowwtogether with all the other bindings.
2017-04-04 22:25:56 +02:00
407f1b1f8e Mark search result upon exiting isearch with S-return 2017-03-22 23:24:35 +01:00
800ed90b0f Add new sml theme to custom-safe-themes 2017-03-22 23:24:34 +01:00
e8c3109177 Install the phi-search and phi-search-mc packages 2017-01-26 09:33:43 +01:00
a34276b5e4 Update smartparens command list 2017-01-26 09:32:12 +01:00
37081cff12 Update mc key bindings 2017-01-26 09:32:12 +01:00
0d14e6ca21 Update mc command list 2017-01-26 09:32:12 +01:00
18bd13e72e Enable the narrow-to-region command 2017-01-11 09:11:53 +01:00
3f47daebcb Add “not” and “in” symbols to python-mode’s keywords to prettify 2017-01-11 09:11:53 +01:00
00efde0aa0 Install the dockerfile-mode package 2017-01-11 09:11:53 +01:00
97089c4fb7 Add Org ELPA to package-archives 2017-01-05 21:46:03 +01:00
feb413f2f4 Pin the js2-mode package to melpa-stable 2016-12-22 10:46:42 +01:00
27e7caa898 Require the ox-md feature when Org is loaded
As I export my blog posts to Markdown, I need this feature to be present.
2016-12-22 10:45:51 +01:00
bbebe85d6e Update mc command lists 2016-12-22 10:44:27 +01:00
ab8080c03d Add key bindings to git-gutter’ previous/next hunk commands 2016-12-19 11:18:01 +01:00
4aec887daa Remove package highlight-indent-guides
Nice-nice, but it barely works, especially with web-mode.
2016-12-19 11:17:38 +01:00
d1668bc57d Stabilize electric-spacing
This package became unstable in melpa, and even though there is a fix
waiting to be merged, it’s not.  I roll back to the stable GNU (ELPA)
version.
2016-12-08 10:28:45 +01:00
60259fc443 Make ediff unfold Org trees
This makes it easier to resolve merge conflicts in Org files.
2016-12-08 10:27:13 +01:00
2dac4864e6 Fix web-mode config 2016-12-05 11:35:12 +01:00
3cf3eae02e Install the web-mode package
It is also activated for each HTML file.
2016-12-02 16:49:15 +01:00
d00e4a0cec Fix dashboard config
Instead of overriding the dashboard-items list, add new items to it.
2016-12-02 16:49:15 +01:00
3984e84b48 Remove fill-column-indicator package
It causes more harm than good.
2016-12-02 16:49:15 +01:00
d5421a1fdb Add function so/query-swap-strings 2016-12-02 08:36:53 +01:00
b94281446b Create function python-add-docstring
With limitations.  Will fix up later.
2016-11-30 17:56:49 +01:00
c0d42b5c48 Add ¬ (not) symbol to prettify-symbols-alist 2016-11-30 17:35:46 +01:00
4e5bf36c20 Install the csharp-mode package 2016-11-30 17:35:46 +01:00
1cd637d158 Fix undo-buffer-kill
It contained a `setq` call with no value.
2016-11-30 17:35:46 +01:00
bea1fa998b Make drag-stuff keys work
They weren’t actually bound…
2016-11-30 17:35:46 +01:00
67213f6da8 Create command kill-this-buffer-delet-this-window
It kill the current buffer and deletes the window.
2016-11-30 17:35:46 +01:00
2d58576715 Edit Org source block in the current window 2016-11-28 10:18:54 +01:00
cca795ce3c Customize HTML exported checkboxes 2016-11-28 08:52:25 +01:00
65bcb44a4e Reconfigure Org go-to 2016-11-28 08:31:21 +01:00
f5d29d0e1c Borrow fill-or-unfill-paragraph from sachachua 2016-11-28 05:24:47 +01:00
09d986d989 Make sure magithub and magit-gerrit are loaded after magit 2016-11-25 10:19:42 +01:00
b1db7426b4 Add auto-package-update-maybe to after-init-hook
I somehow missed that step…
2016-11-25 10:18:35 +01:00
4cdbd9d19a Remove TAB binding of yas-expand
It caused me more trouble than not.  I will find a better binding for it later.
2016-11-23 09:50:13 +01:00
2349b1daa4 Install the dashboard package 2016-11-23 08:42:44 +01:00
8ea81a3c8a Add python projects shortener to sml config 2016-11-21 16:46:07 +01:00
63226f60d4 Install the po-mode package 2016-11-21 16:45:53 +01:00
11e0e9bb25 Implement buffer-kill undoing
`C-x k` now kills the current buffer without a question. `C-x M-k` undoes it.
2016-11-21 11:41:31 +01:00
0ae7c9f240 Install the company-web and enlive packages 2016-11-21 11:39:39 +01:00
cdafdbf11d Add a skeleton for redesigning the mode line
It currently contains the sml-modified default.
2016-11-21 08:30:46 +01:00
307e4d0b27 Disable company tooltip
It’s annoying for me, even though `helm-company` has some issues.
2016-11-21 08:26:45 +01:00
5a836f5227 Patch up smartparens config
* Remove paren usage altogether (it was redundant:
  `show-smartparens-mode`vs. `show-paren-mode`).
* Add key binding for `sp-unwrap-sexp`
2016-11-18 15:50:11 +01:00
26a7641a6a Fix github-notifier config
If it doesn’t load *after* id-manager, it can’t get the token.
2016-11-18 15:20:40 +01:00
0b559b88c3 Install the gist package 2016-11-18 15:19:15 +01:00
43d7cc74b0 Install the github-notifier package
Now that I can store my passwords encrypted, I can use this again!
2016-11-18 14:42:13 +01:00
a68d635a05 Fix gpolonkai/idm-get-field-for-account
It had more problems than not…
2016-11-18 14:40:59 +01:00
dc691e216e Install the mediawiki package
It is configured to be used with WikEmacs.
2016-11-18 13:26:23 +01:00
d0fba2c7c6 Extend id-manager functionality
Add new macros that can fetch the account-id and password for a given
account.
2016-11-18 13:25:12 +01:00
7f90feb9bd Finish configuring id-manager 2016-11-18 13:24:32 +01:00
4ea052b970 Move loading my own functions earlier 2016-11-18 09:47:57 +01:00
5a8be149cb Install anaconda-mode and company-anaconda packages 2016-11-17 23:31:35 +01:00
6829120d10 Create capture template for GT2 notes 2016-11-17 22:37:15 +01:00
a80b9348cc Reconfigure ace-window
* Make it possible to scroll (up/down) and bury window buffers
* Map window selectors back to the defaults (numbers)
* Make dispatcher run always, even for only two windows
2016-11-17 16:07:27 +01:00
822260dad0 Reformat org-todo-keywords
Just for readability’s sake.
2016-11-17 13:36:32 +01:00
954881e661 Move window manipulating functions to window-manip.el 2016-11-17 13:35:33 +01:00
6ee76de7db Enable the erase-buffer command 2016-11-17 08:26:01 +01:00
a83ff1f572 Add my new movement commands to mc-lists 2016-11-17 08:26:01 +01:00
2403128ced Rebind ace-window to C-x o
It is a real pain to keep track of what `other-window` means. It was
also inconvenient to press M-P on Dvorak. This new solution will be a
short-term pain until I get used to it with more than two windows, but
after that, life will be easier.
2016-11-17 08:26:01 +01:00
d45149db80 Remove easy-kill in favour of expand-region
* easy-kill is not that easy
* I actually used for the purpose of expand-region
2016-11-16 23:01:56 +01:00
5e6aae007d Implement move-to-beginning/end-of line for Org-mode 2016-11-15 22:09:01 +01:00
b48f918bdd Update auto-virtualenv config
It now activates automatically when switching to `python-mode`
2016-11-15 22:09:00 +01:00
ab56d6f449 Add two new functions to move to beginning/end of a line
They consider visual lines and indentation.  However, they don’t work in
Org-mode yet.

Inspired by @bbatsov:
http://emacsredux.com/blog/2013/05/22/smarter-navigation-to-the-beginning-of-a-line/
2016-11-15 09:36:10 +01:00
33e05c054a Add key binding for transpose-windows 2016-11-15 09:36:09 +01:00
ef42a03d3a Add key binding to visit init file and index.org
Inspired by http://emacsredux.com/blog/2013/05/18/instant-access-to-init-dot-el/
2016-11-15 00:50:49 +01:00
e0e2fd262e Install the highlight-indent-guides package 2016-11-15 00:07:11 +01:00
e8db11375f Fix electric-case config 2016-11-14 23:59:40 +01:00
a24bf7d6ef Install the eshell-prompt-extras package 2016-11-14 20:29:44 +01:00
1dfb6091a0 Install the eshell-fringe-status package 2016-11-14 20:20:32 +01:00
717c1acc34 Woot! 2016-11-14 20:13:03 +01:00
4a114c7fc3 Install the glasses package 2016-11-14 19:44:55 +01:00
441513584a Auto-enable electric-spacing-mode in C-derived modes 2016-11-14 08:39:16 +01:00
d536a23ee2 Install the hl-todo package 2016-11-11 23:29:00 +01:00
9fb5a2c3a1 Install the helm-pydoc package 2016-11-11 23:28:59 +01:00
99645d8634 Woot! 2016-11-11 23:28:44 +01:00
3ef1fa40d2 Woot! 2016-11-11 12:34:51 +01:00
ac28c27f0f Install the helm-hunks package 2016-11-11 11:27:50 +01:00
0ee44cc580 Install the helm-c-yasnippet package 2016-11-11 09:52:02 +01:00
30ec3aad97 Finish minari-today-string 2016-11-11 09:52:02 +01:00
2dd0f9edf2 Woot! 2016-11-10 21:57:16 +01:00
696904aa8e Install the easy-kill package 2016-11-10 17:08:46 +01:00
7309e9e740 Shrink ace-window’s key preview 2016-11-10 17:08:18 +01:00
7b059751b5 Expand sml/replacer-regexp-list
* Add “~/Projektek/” that I use on my home machine
* Add my blog‘s directory
2016-11-10 11:48:31 +01:00
d76643ae93 Change the title of a frame to the current file name 2016-11-10 11:48:24 +01:00
fa68c7ce00 Move autosave and backup files to /tmp 2016-11-10 11:32:35 +01:00
ccdc042a89 Create function open-this-file-as-other-user
It opens the current file as the specified user or root.
2016-11-10 11:31:50 +01:00
50d518a906 Install the gitlab package
It’s needed for my future magitlab stuff.
2016-11-10 09:49:26 +01:00
7b47c9b24b Update mc command list 2016-11-10 09:48:14 +01:00
a332592a17 Woot! 2016-11-10 09:47:54 +01:00
540eccc8a5 Fix zone-nyan config
It sometimes loaded before `zone`, when `zone-programs` is not defined yet.
2016-11-09 10:38:40 +01:00
2c21f86070 Woot! 2016-11-09 10:35:46 +01:00
c720e948f7 Set Hack as the default font 2016-11-09 10:14:29 +01:00
6b170ac52f Bind org-toggle-link-display to C-c l 2016-11-09 10:14:19 +01:00
4b582382fd Install the ace-mc package 2016-11-09 10:13:56 +01:00
613d2c63ea Attempt to use git-gutter-fringe only in graphics mode 2016-11-09 10:13:43 +01:00
50bfccd7a8 Fix message in gpolonkai/zone-enable 2016-11-09 10:12:53 +01:00
a7ce541859 Woot! 2016-11-09 10:12:30 +01:00
b71866dfd6 Make zone-nyan load only for graphics mode 2016-11-09 09:12:58 +01:00
bfbf069997 Fix sml config
* Make it load after org, so org-directory is added correctly to
  `sml/replacer-regexp-list`
* Add Projects to `sml/replacer-regexp-list`
* Add Documents to `sml/replacer-regexp-list` in a way that agrees with
  XDG
2016-11-09 08:42:52 +01:00
fdfac65961 Install the flymake-python-pyflakes package 2016-11-09 08:42:52 +01:00
a40477411d Install the auto-virtualenv package 2016-11-09 08:42:51 +01:00
ae47b2b574 Install the anzu package 2016-11-07 23:58:05 +01:00
031e5fe6c0 Finish cleaning up custom-safe-themes 2016-11-07 17:45:12 +01:00
92eadd3fe2 Woot! 2016-11-07 16:33:56 +01:00
c927f77126 Move from git-gutter to git-gutter-fringe
I’m not sure (yet) if this is a good idea, though. Let’s see what this
can do in text mode…
2016-11-07 16:23:52 +01:00
1e02b702c8 Install the form-feed package 2016-11-07 16:17:30 +01:00
79c8dc6072 Install the fill-column-indicator package 2016-11-07 16:06:41 +01:00
555c27b4cc Install the dired-k package 2016-11-07 16:04:50 +01:00
dcc9a63cb0 Clean up custom-safe-themes 2016-11-07 16:04:10 +01:00
cbb8555ac5 Fix MELPA stable configuration 2016-11-07 14:46:53 +01:00
bfe6318062 Change long line background to a darker one
It is much more readable (not perfect, though…)
2016-11-07 14:46:21 +01:00
2427e2818a Update package archive list
I have reordered it a bit, and added MELPA stable.
2016-11-07 14:00:06 +01:00
699fd49140 Woot! 2016-11-07 13:28:03 +01:00
6d9c415f40 Update mc-lists 2016-11-07 13:28:03 +01:00
3becd42968 Change default wakatime CLI path
I use Fedora primarily, and Fedora pip installs under `/usr/bin` instead
of `/usr/local/bin` (I wonder, though, how good that idea is…)
2016-11-07 13:28:03 +01:00
8705d8d985 Maximize frame on startup 2016-11-07 13:28:03 +01:00
5c45f8e199 Add short(?) bindings to my blog and e-mail
Maybe a global dabbrev or snippet is a better idea, though.
2016-11-07 13:24:41 +01:00
702c873d51 Bind transpose-* to an M-t keymap 2016-11-07 13:24:41 +01:00
7840503da6 Rebind duplicate-line to a saner key 2016-11-07 13:24:40 +01:00
c902a22bcf Rebind avy-goto-char to a more sane key 2016-11-07 13:24:40 +01:00
ceb06977a4 Add keys to insert my web and email address 2016-11-03 19:33:09 +01:00
111a4b01d8 Move zygospore binding to C-x 1
I should have started with it.
2016-11-03 19:33:08 +01:00
2ad00f4e4d Fix nxml config
Although the package name is `nxml`, the feature to `require` is
`nxml-mode`.
2016-11-03 18:31:39 +01:00
41c49b79ca Woot! 2016-11-03 18:31:39 +01:00
Gergely Polonkai
20389b6617 Initial version of minari.el
It has some bugs (or maybe my JS version has one). Yet, it’s
feature-complete.
2016-11-03 16:09:40 +01:00
Gergely Polonkai
bf639efa20 Woot! 2016-11-03 13:26:09 +01:00
Gergely Polonkai
2af3dade16 Add key binding to org-capture 2016-11-03 12:42:32 +01:00
5d76b50e89 Woot! 2016-11-02 22:26:04 +01:00
4c677c3679 Configured the cookie1 package
Now it uses the ancient tagline database.
2016-11-02 22:26:04 +01:00
Gergely Polonkai
0cee2a7afd Woot! 2016-11-02 14:42:27 +01:00
Gergely Polonkai
fff167d497 Add .emacs.d/var to .gitignore 2016-11-02 14:42:27 +01:00
406266c670 Woot! 2016-11-02 13:24:05 +01:00
6cdddf1e48 Remove clearcase.el
Finally I don’t have to use it any more!
2016-11-02 13:24:05 +01:00
Gergely Polonkai
adc1ddc852 Woot! 2016-11-02 10:21:47 +01:00
110f573820 Woot! 2016-11-02 10:03:07 +01:00
57b63b0612 Install auto-package-update
It partially obsoletes my own package-manip stuff.  I don’t load this
latter any more, but I may send its crontab-like functionality later.
2016-11-02 10:03:07 +01:00
3cc7226461 Install the auto-highlight-symbol package
All good IDEs (like Notepad++. LoL) have it.
2016-11-02 10:03:06 +01:00
a717e9ace1 Move customize stuff to a separate file 2016-11-01 17:07:41 +01:00
405a1be44a Kanbanize
* Install the kanban package
* Set up Org TODO states
2016-11-01 14:03:10 +01:00
3d02b61550 Extend mc command list 2016-11-01 14:03:09 +01:00
217f16cf9d In-tall the achievements package 2016-11-01 14:03:09 +01:00
Gergely Polonkai
deecd0eb5b Move custom global key bindings to bind-keys
This requires the bind-key package to be pinned (it was installed anyway
as a dependency to use-package).
2016-10-28 07:35:41 +02:00
Gergely Polonkai
3364cdd580 Update configuration of the markdown-mode package 2016-10-28 07:34:52 +02:00
Gergely Polonkai
245e01ebad Install the ace-popup-menu package 2016-10-28 07:34:51 +02:00
Gergely Polonkai
16efffafef Add a docstring to my keymap 2016-10-27 16:50:03 +02:00
Gergely Polonkai
c90582bb3b Move which-func configuration to use-package 2016-10-27 16:50:02 +02:00
Gergely Polonkai
197f79c822 Issue a message when starting idle-zoning timer
It didn’t have any visual feedback, which is a bit annoying in this
case.
2016-10-27 16:49:32 +02:00
Gergely Polonkai
753e165d88 Move webjump configuration to use-package 2016-10-27 16:49:30 +02:00
Gergely Polonkai
df2edfb7c8 Fix key binding definitions 2016-10-27 16:48:46 +02:00
Gergely Polonkai
cd2dd7b629 Add key binding for git-gutter:update-all-windows 2016-10-27 16:48:46 +02:00
e8113bf04b Bind org-random-todo to a key 2016-10-27 09:58:56 +02:00
1e8ef17788 Add key binding for git-messenger 2016-10-26 23:26:05 +02:00
b15cda6dc8 Install the zygospore package
Bound to `C-x t w`
2016-10-26 23:26:04 +02:00
Gergely Polonkai
15d81e221b Add key bindings for zone 2016-10-25 19:06:37 +02:00
32 changed files with 6379 additions and 9420 deletions

37
.gitignore vendored
View File

@ -1,3 +1,4 @@
/customizations.el
*~ *~
/session* /session*
/tramp /tramp
@ -15,6 +16,14 @@
/url/ /url/
/hgs-cache /hgs-cache
/smex-items /smex-items
/var/
/anaconda-mode/
/.last-package-update-day
/eln-cache
/.lsp-session-v1
/.dap-breakpoints
/elpy
# All hail use-package! # All hail use-package!
/elpa/ /elpa/
@ -27,4 +36,30 @@
/.sx/ /.sx/
# Newsticker # Newsticker
/newsticker /newsticker
# The “compiled” version of the Org configuration
/configuration.el
/bookmarks
/org-caldav-*.el
# Forge database
/forge-database.sqlite
/forge-database-v*.sql
/forge-database-v*.sqlite
# request.el cookie jars
/request/curl-cookie-jar
# Quelpa stuff
/quelpa
# Transient history
/transient/history.el
# Mastodon token list
/mastodon.plstore
/org-roam.db
/.org-id-locations
/projects

View File

@ -3,27 +3,72 @@
(setq mc/cmds-to-run-for-all (setq mc/cmds-to-run-for-all
'( '(
c-electric-brace avy-goto-char
c-electric-semi&comma backward-sexp
c-indent-line-or-region c-electric-brace
electric-newline-and-maybe-indent c-electric-colon
hungry-delete-forward c-electric-paren
indent-for-tab-command c-electric-semi&comma
kill-region c-electric-star
org-cycle c-indent-line-or-region
org-end-of-line delete-indentation
org-kill-line downcase-region
org-self-insert-command drag-stuff-down
sp-backward-delete-char electric-newline-and-maybe-indent
sp-backward-kill-word forward-sexp
sp-delete-char gpolonkai/duplicate-line
)) gpolonkai/move-to-beginning-of-line
gpolonkai/move-to-end-of-line
gpolonkai/org-space-key
hungry-delete-backward
hungry-delete-forward
indent-for-tab-command
kill-region
kill-sexp
kill-visual-line
kmacro-end-or-call-macro
magit-status
org-cycle
org-delete-indentation
org-end-of-line
org-force-self-insert
org-kill-line
org-meta-return
org-return
org-self-insert-command
org-yank
overwrite-mode
sp-backward-delete-char
sp-backward-kill-word
sp-delete-char
sp-kill-hybrid-sexp
sp-kill-region
sp-kill-word
sp-remove-active-pair-overlay
sp-rewrap-sexp
sp-unwrap-sexp
toggle-char-case
upcase-region
wdired--self-insert
yaml-electric-dash-and-dot
))
(setq mc/cmds-to-run-once (setq mc/cmds-to-run-once
'( '(
drag-stuff-right ace-jump-done
end-of-buffer ace-jump-move
helm-M-x ace-mc-add-char
helm-find-files ace-mc-add-multiple-cursors
smartparens-strict-mode ace-mc-add-single-cursor
)) ace-mc-do-keyboard-reset
ace-mc-quick-exchange
counsel-M-x
drag-stuff-right
end-of-buffer
helm-M-x
helm-confirm-and-exit-minibuffer
helm-find-files
smartparens-strict-mode
suspend-frame
yaml-electric-backspace
))

3271
configuration.org Normal file

File diff suppressed because it is too large Load Diff

1
eshell/alias Normal file
View File

@ -0,0 +1 @@
alias git git --no-pager $*

2668
fortune-cookies.txt Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1 +1,2 @@
03618 Thu Aug 16 09:29:39 2018 Gergely Polonkai <gergely@polonkai.eu>
02667 Wed Oct 5 09:52:44 2016 Gergely Polonkai <gergely@polonkai.eu> 02667 Wed Oct 5 09:52:44 2016 Gergely Polonkai <gergely@polonkai.eu>

1
games/snake-scores Normal file
View File

@ -0,0 +1 @@
00000 Thu Aug 16 09:43:46 2018 Gergely Polonkai <gergely@polonkai.eu>

View File

@ -1,30 +0,0 @@
(eval-when-compile (require 'cl))
(require 'request)
(defun gerrit-json-read ()
"Gerrit puts five extra chars (\")]}'\n\")at the beginning of
each JSON response for security reasons. All this function does
is it strips those chars before calling `json-read'"
(goto-line 2)
(beginning-of-line)
(json-read))
(let ((username "epolger")
(password "EsthaiTh6Fu"))
(request
"https://gerrit.ericsson.se/a/changes/?q=status:open+owner:self"
:parser 'gerrit-json-read
:headers '(("Authorization"
(concat ("Basic "
(base64-encode-string (concat username
":"
password))))))
:success (function* (lambda (&key data &allow-other-keys)
(message "Success!")
(message "%s" data)))
:error (function* (lambda (&key error-thrown &allow-other-keys&rest _)
(message "Got error: %s" error-thrown)))
:complete (lambda (&rest _) (message "Finished!"))
:status-code '((401 . (lambda (&rest _) (message "Got 401"))))))

937
init.el
View File

@ -1,929 +1,16 @@
;;; init --- Summary
;;; Commentary:
;;; Code:
(setq custom-file (concat user-emacs-directory "customizations.el"))
(load custom-file)
;; Initialize the package system and use-package ;; Initialize the package system and use-package
(setq load-prefer-newer t) (setq load-prefer-newer t)
(require 'package)
(add-to-list 'package-archives
'("gnu" . "http://elpa.gnu.org/packages/"))
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/"))
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/"))
(package-initialize)
(unless (package-installed-p 'use-package) ;; I started moving my configuration to this Org file. Its easier to document this way.
(package-refresh-contents) (org-babel-load-file (expand-file-name "configuration.org" user-emacs-directory))
(package-install 'use-package))
;; Set up my personal keymap early so I can use it in use-package ;;; init.el ends here
;; calls
(define-prefix-command 'gpolonkai/pers-map)
(define-key ctl-x-map "t" 'gpolonkai/pers-map)
;; Add path to my custom lisp functions
(add-to-list 'load-path (concat
user-emacs-directory
(convert-standard-filename "lisp/")))
;; Custom stuff
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(background-color "#7f7f7f")
'(background-mode dark)
'(blink-cursor-mode t)
'(column-number-mode t)
'(cursor-color "#5c5cff")
'(cursor-type (quote bar))
'(custom-enabled-themes (quote (tango-dark)))
'(custom-safe-themes
(quote
("84d2f9eeb3f82d619ca4bfffe5f157282f4779732f48a5ac1484d94d5ff5b279"
"c74e83f8aa4c78a121b52146eadb792c9facc5b1f02c917e3dbb454fca931223"
"3c83b3676d796422704082049fc38b6966bcad960f896669dfc21a7a37a748fa"
"a27c00821ccfd5a78b01e4f35dc056706dd9ede09a8b90c6955ae6a390eb1c1e"
"1e7e097ec8cb1f8c3a912d7e1e0331caeed49fef6cff220be63bd2a6ba4cc365"
"fc5fcb6f1f1c1bc01305694c59a1a861b008c534cae8d0e48e4d5e81ad718bc6"
default)))
'(echo-keystrokes 0.1)
'(foreground-color "#5c5cff")
'(indent-tabs-mode nil)
'(indicate-empty-lines t)
'(inhibit-startup-echo-area-message (user-login-name))
'(inhibit-startup-screen t)
'(initial-scratch-message nil)
'(package-selected-packages
(quote
(ace-window
ag
alert
avy
beacon
cheatsheet
coffee-mode
command-log-mode
company
company-c-headers
company-emoji
company-restclient
company-shell
diminish
drag-stuff
electric-case
electric-spacing
emamux
flycheck
flycheck-pkg-config
focus
ggtags
git-gutter
git-messenger
git-timemachine
gitconfig-mode
gitignore-mode
gnugo
gobgen
google
goto-last-change
helm
helm-ag
helm-chrome
helm-company
helm-descbinds
helm-describe-modes
helm-flycheck
helm-flyspell
helm-github-stars
helm-google
helm-gtags
helm-projectile
helm-smex
helm-swoop
helm-unicode
hungarian-holidays
hungry-delete
hyde
id-manager
identica-mode
jinja2-mode
js2-mode
json-mode
magit
magit-gerrit
magithub
markdown-mode
mc-extras
multiple-cursors
ng2-mode
nyan-mode
nyan-prompt
org
org-bullets
org-jekyll
org-projectile
org-random-todo
org-rtm
origami
plantuml-mode
projectile
rainbow-delimiters
rainbow-mode
restclient
restclient-helm
sass-mode
smart-mode-line
smart-mode-line-powerline-theme
smartparens
spinner
sx
typescript-mode
use-package
vala-mode
vala-snippets
wakatime-mode
xlicense
yaml-mode
yasnippet
zone-nyan)))
'(sgml-basic-offset 4)
'(show-trailing-whitespace t)
'(tab-width 4))
;; Custom face settings
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(aw-leading-char-face ((t (:inherit ace-jump-face-foreground :height 3.0))))
'(hl-line ((t (:inherit nil :background "gray25"))))
'(trailing-whitespace ((t (:inherit nil :background "red1"))))
'(whitespace-line ((t (:inherit nil :background "orange")))))
(set-face-attribute 'default t :font "Hack-10")
(set-frame-font "Hack-10" nil t)
;; UI hacks: turn off the scroll bar (thats why Nyan-cat is here),
;; the toolbar (I dont really use it), and the menu bar (I rarely use
;; it, and in those rare occasions I can simply turn it on)
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
;; Some personal stuff
(setq user-mail-address "gergely@polonkai.eu")
;; Load some custom libraries
(require 'thingatpt)
(use-package helm
:ensure t
:init
(require 'helm-config)
(setq helm-M-x-fuzzy-match t
helm-buffers-fuzzy-matching t
helm-recentf-fuzzy-match t)
:config
(helm-mode t)
:bind
(("M-x" . helm-M-x)
("C-x C-f" . helm-find-files)
("C-x b" . helm-mini)))
(use-package helm-swoop
:ensure t
:bind
(("M-i" . helm-swoop)))
(use-package ggtags
:ensure t
:config
(add-hook 'c-mode-hook
(lambda ()
(ggtags-mode t)))
(add-hook 'c-mode-common-hook
(lambda ()
(when (derived-mode-p 'c-mode 'c++-mode 'java-mode)
(ggtags-mode t)))))
(use-package helm-gtags
:ensure t
:init
(setq-default helm-gtags-auto-update t
helm-gtags-ignore-case t
helm-gtags-path-style 'relative)
:config
(add-hook 'c-mode-hook
(lambda ()
(helm-gtags-mode t)))
:bind
(:map helm-gtags-mode-map
("M-t" . helm-gtags-find-tag)
("M-r" . helm-gtags-find-rtag)
("M-s" . helm-gtags-find-symbol)
("M-g M-p" . helm-gtags-parse-file)
("C-c <" . helm-gtags-previous-history)
("C-c >" . helm-gtags-next-history)
("M-," . helm-gtags-pop-stack)))
;; Whitespace mode
;;
;; It is turned on by default, and can be toggled with F10
(use-package whitespace
:demand
:config
(global-whitespace-mode 1)
:bind
(([f10] . whitespace-mode)
([(shift f10)] . global-whitespace-mode)))
;; Multiple cursors
(use-package multiple-cursors
:ensure t
:config
(add-hook 'multiple-cursors-mode-enabled-hook
(lambda ()
(setq blink-matching-paren nil)))
(add-hook 'multiple-cursors-mode-disabled-hook
(lambda ()
(setq blink-matching-paren t)))
:bind (("C-S-c C-S-c" . mc/edit-lines)
("C->" . mc/mark-next-like-this)
("C-<" . mc/mark-previous-like-this)
("C-c C-<" . mc/mark-all-like-this)))
(use-package eshell
:config
(add-hook 'eshell-mode-hook
(lambda () (local-set-key (kbd "C-d") #'eshell-C-d)))
:bind
(:map gpolonkai/pers-map
("e" . eshell)))
;; Save place
(use-package saveplace
:config
(setq-default save-place t)
(setq save-place-file (expand-file-name ".places" user-emacs-directory)))
;; Nyanyanyanyanya
(use-package nyan-mode
:ensure t
:init
(setq-default nyan-animate-nyancat t
nyan-wavy-trail t)
:config
(nyan-mode t))
(when (display-graphic-p)
(use-package nyan-prompt
:ensure t
:config
(add-hook 'eshell-load-hook 'nyan-prompt-enable)))
;; Zone!
(use-package zone-nyan
:ensure t
:init
(setq zone-programs [zone-nyan])
(setq-default zone-nyan-hide-progress t))
(use-package zone
:config
(zone-when-idle 60))
;; Magit and friends
(use-package magit
:ensure t
:init
(setq magit-auto-revert-mode nil)
(setq magit-last-seen-setup-instructions "1.4.0")
:bind
(("C-x g" . magit-status)))
(use-package magithub
:ensure t)
(use-package magit-gerrit
:ensure t
:init
(setq-default magit-gerrit-remote "gerrit"))
(use-package origami
:ensure t
:demand
:config
(define-prefix-command 'origami-mode-map)
(global-set-key (kbd "C-x C-z") 'origami-mode-map)
(global-origami-mode)
:bind
(:map origami-mode-map
("o" . origami-open-node)
("O" . origami-open-node-recursively)
("c" . origami-close-node)
("C" . origami-close-node-recursively)
("a" . origami-toggle-node)
("A" . origami-recursively-toggle-node)
("R" . origami-open-all-nodes)
("M" . origami-close-all-nodes)
("v" . origami-show-only-node)
("k" . origami-previous-fold)
("j" . origami-forward-fold)
("x" . origami-reset)))
(use-package helm-ag
:ensure t
:bind
(("C-x M-a" . helm-do-ag)))
(use-package smartparens
:ensure t
:demand
:config
(show-smartparens-global-mode t)
(add-hook 'prog-mode-hook
'turn-on-smartparens-strict-mode)
(add-hook 'markdown-mode-hook
'turn-on-smartparens-strict-mode)
:bind
(([f9] . smartparens-strict-mode)))
(use-package smart-mode-line
:ensure t
:config
(sml/setup))
(use-package company
:ensure t
:config
(global-company-mode))
(use-package helm-company
:ensure t
:after
company
helm
:bind
(:map company-mode-map
("C-S-j" . helm-company)
:map company-active-map
("C-S-j" . helm-company)))
(use-package projectile
:ensure t
:config
(projectile-global-mode t))
(use-package helm-projectile
:ensure t
:init
(setq projectile-completion-system 'helm)
:config
(helm-projectile-on))
(use-package drag-stuff
:ensure t
:config
(drag-stuff-global-mode t))
;; Git gutter
(use-package git-gutter
:ensure t
:config
(global-git-gutter-mode t))
;; Org mode
(use-package org
:ensure t
:demand
:init
(require 'xdg-paths)
(setq-default org-crypt-key "B0740C4C"
org-default-notes-file (concat user-documents-directory
(convert-standard-filename
"/orgmode/notes.org"))
org-directory (concat user-documents-directory
(convert-standard-filename "/orgmode/"))
org-agenda-files (concat user-documents-directory
(convert-standard-filename
"/orgmode/agenda_files"))
org-ellipsis "…#"
org-startup-folded 'content
org-mobile-directory (concat user-documents-directory
(convert-standard-filename
"/orgmode/mobile/"))
org-mobile-inbox-for-pull (concat
user-documents-directory
(convert-standard-filename
"/orgmode/from-mobile.org"))
org-log-done 'time)
:config
(unless (boundp 'org-capture-templates)
(setq org-capture-templates nil))
(add-to-list 'org-capture-templates
'("p" "Blog post"
entry (file+datetree (concat org-directory "blog.org"))
"* %^{Title} :blog:\n :PROPERTIES:\n :on: %T\n :END:\n %i%?"))
(setq org-time-stamp-formats '("<%Y-%m-%d>" . "<%Y-%m-%d %H:%M>"))
:bind
(:map gpolonkai/pers-map
("a" . org-agenda-list)
:map org-mode-map
("SPC" . org-space-key)))
(use-package org-bullets
:ensure t
:init
(add-hook 'org-mode-hook
(lambda ()
(if (display-graphic-p) org-bullets-mode))))
;; Waka-waka
(use-package wakatime-mode
:ensure t
:init
(setq-default wakatime-cli-path "/usr/local/bin/wakatime")
:config
(global-wakatime-mode t))
(use-package ace-window
:ensure t
:init
(setq aw-keys '(?a ?o ?e ?u ?i ?d ?h ?t ?n)
aw-background nil)
:bind
(("M-P" . ace-window)))
(use-package avy
:ensure t
:demand
:config
(avy-setup-default)
:bind
(("C-:" . avy-goto-char)
("C-'" . avy-goto-char-2)
("M-g f" . avy-goto-line)
("M-g w" . avy-goto-word-1)
("M-g e" . avy-goto-word-0)))
(use-package diminish
:ensure t
:defer t)
(use-package focus
:ensure t
:bind
(([f8] . focus-mode)))
(use-package coffee-mode
:ensure t)
(use-package command-log-mode
:ensure t)
(use-package company-c-headers
:ensure t)
(use-package company-shell
:ensure t)
(use-package electric-case
:ensure t
:config
(add-hook 'c-mode-hook ''electric-case-c-init))
(use-package electric-spacing
:ensure t
:bind
(([f7] . electric-spacing-mode)))
(use-package emamux
:ensure t)
(use-package flycheck
:ensure t)
(use-package flycheck-pkg-config
:ensure t)
(use-package git-messenger
:ensure t)
(use-package git-timemachine
:ensure t
:bind
(([f6] . git-timemachine-toggle)))
(use-package gitconfig-mode
:ensure t)
(use-package gitignore-mode
:ensure t)
(use-package gnugo
:ensure t)
(use-package gobgen
:ensure t)
(use-package goto-last-change
:ensure t
:bind
(("M-g /" . goto-last-change)))
(use-package helm-chrome
:ensure t)
(use-package helm-flycheck
:ensure t)
(use-package helm-flyspell
:ensure t
:demand
:bind
(:map flyspell-mode-map
("C-M-i" . helm-flyspell-correct)))
(use-package helm-github-stars
:ensure t
:init
(setq-default helm-github-stars-username "gergelypolonkai"))
(use-package helm-google
:ensure t)
(use-package hyde
:ensure t)
(use-package id-manager
:ensure t)
(use-package identica-mode
:ensure t)
(use-package jinja2-mode
:ensure t)
(use-package js2-mode
:ensure t)
(use-package json-mode
:ensure t)
(use-package markdown-mode
:ensure t)
(use-package mc-extras
:ensure t)
(use-package ng2-mode
:ensure t)
(use-package org-projectile
:ensure t)
(use-package sass-mode
:ensure t)
(use-package smart-mode-line-powerline-theme
:ensure t
:init
(setq-default sml/theme 'powerline))
(use-package spinner
:ensure t)
(use-package sx
:ensure t
:demand
:bind
(:map gpolonkai/pers-map
("qi" . sx-inbox)
("qs" . sx-search)))
(use-package typescript-mode
:ensure t)
(use-package vala-mode
:ensure t
:init
(add-to-list 'auto-mode-alist '("\\.vala\\'" . vala-mode)))
(use-package xlicense
:ensure t)
(use-package yaml-mode
:ensure t
:init
(add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode)))
(use-package helm-smex
:ensure t
:bind
(("M-X" . helm-smex)))
(use-package ediff
:ensure t
:init
(setq-default ediff-merge-split-window-function 'split-window-horizontally
ediff-split-window-function 'split-window-vertically
ediff-window-setup-function 'ediff-setup-windows-plain))
(use-package plantuml-mode
:ensure t
:init
(setq plantuml-jar-path
(expand-file-name
;; Make sure we have a download location even if XDG is not
;; working
(cond
((xdg-user-dir "DOWNLOAD")
(concat (xdg-user-dir "DOWNLOAD") "/plantuml.jar"))
(t
"~/Downloads/plantuml.jar"))))
(defvaralias 'org-plantuml-jar-path 'plantuml-jar-path)
:config
(org-babel-do-load-languages
'org-babel-load-languages
'((plantuml . t))))
(use-package org-random-todo
:ensure t
:config
;; Dont bug me too often…
(setq org-random-todo-how-often 3600))
(use-package calendar
:init
(setq calendar-week-start-day 1
calendar-latitude 47.4
calendar-longitude 19.0
calendar-location-name "Budapest, Hungary"
calendar-time-zone 60
calendar-standard-time-zone-name "CET"
calendar-daylight-time-zone-name "CEST"))
(use-package yasnippet
:ensure t
:config
(yas-global-mode 1))
(use-package vala-snippets
:ensure t
:after
yasnippet)
(use-package hungarian-holidays
:ensure t
:config
(hungarian-holidays-add))
(use-package beacon
:ensure t
:demand
:config
(beacon-mode 1)
:bind
(:map gpolonkai/pers-map
("b" . beacon-blink)))
(use-package flyspell
:config
(add-hook 'prog-mode-hook
'flyspell-prog-mode)
(add-hook 'text-mode-hook
'flyspell-mode))
(use-package helm-descbinds
:ensure t)
(use-package helm-describe-modes
:ensure t)
(use-package paren
:config
(show-paren-mode t))
(use-package autorevert
:config
(global-auto-revert-mode 1))
(use-package rainbow-delimiters
:ensure t
:config
(add-hook 'prog-mode-hook
#'rainbow-delimiters-mode))
(use-package rainbow-mode
:ensure t)
(use-package hungry-delete
:ensure t
:config
(global-hungry-delete-mode))
(use-package hl-line
:config
(global-hl-line-mode))
(use-package eww
:config
(setq eww-search-prefix "https://www.google.com/?q="))
(use-package electric
:config
;; This seems to be the default, but lets make sure…
(electric-indent-mode 1))
(use-package restclient
:ensure t)
(use-package company-restclient
:ensure t)
(use-package restclient-helm
:ensure t)
(use-package alert
:ensure t
:config
(setq alert-default-style 'notifications))
(use-package newsticker
:demand
:config
(setq newsticker-url-list '(("(or emacs irrelevant)"
"http://oremacs.com/atom.xml"
nil nil nil)
("think"
"http://batsov.com/atom.xml"
nil nil nil)
("Endless Parentheses"
"http://endlessparentheses.com/atom.xml"
nil nil nil)
("Irreal"
"http://irreal.org/blog/?feed=rss2"
nil nil nil)
;; The followint may supersede previous entries
("Planet Emacs"
"http://planet.emacsen.org/atom.xml"
nil nil nil)))
:bind
(:map gpolonkai/pers-map
("n" . newsticker-show-news)))
(use-package cheatsheet
:ensure t)
(use-package nxml
:config
(setq nxml-attribute-indent 4
nxml-child-indent 2
nxml-outline-child-indent 4))
(use-package savehist
:config
(savehist-mode 1))
;; Before this can be used, make sure the Symbola font is installed:
;; https://zhm.github.io/symbola/
(defun --set-emoji-font (frame)
"Adjust the font setting of FRAME so Emacs can display Emoji properly."
(when (fboundp 'set-fontset-font)
(if (eq system-type 'darwin)
;; For NS/Cocoa
(set-fontset-font t 'symbol
(font-spec :family "Apple Color Emoji")
frame 'prepend)
;; For Linux
(set-fontset-font t 'symbol
(font-spec :family "Symbola")
frame 'prepend))))
(use-package company-emoji
:ensure t
:after
company
:init
(--set-emoji-font nil)
:config
(add-to-list 'company-backends 'company-emoji)
(add-hook 'after-make-frame-functions
'--set-emoji-font))
;; Load my own functions
(load "gnu-c-header.el")
(load "toggle-window-split.el")
(load "round-number-to-decimals.el")
(load "transpose-windows.el")
(load "zim.el")
(load "clearcase.el")
(load "enclose-string.el")
(load "buf-manipulation.el")
(load "package-manip")
(load "text-manip")
(load "frame-manip")
;; Define aliases
(defalias 'yes-or-no-p 'y-or-n-p)
;; `c-mode' settings
(add-hook 'c-mode-hook
(lambda ()
(which-func-mode)))
(add-hook 'c-mode-common-hook
(lambda ()
(local-set-key (kbd "C-c o") 'ff-find-other-file)
(c-set-style "PERSONAL")
(setq tab-width 4
indent-tabs-mode nil)
(c-toggle-auto-newline 1)))
(add-hook 'c-initialization-hook
(lambda ()
(define-key c-mode-base-map (kbd "C-m") 'c-context-line-break)))
(defvaralias 'c-basic-offset 'tab-width)
(defvaralias 'cperl-indent-level 'tab-width)
(defconst my-c-style
'((c-tab-always-indent . t)
(c-comment-only-line-offset . 4)
(c-hanging-braces-alist . ((substatement-open after)
(brace-list-open)))
(c-hanging-colons-alist . ((member-init-intro before)
(inher-intro)
(case-label after)
(label after)
(access-label after)))
(c-cleanup-list . (scope-operator
empty-defun-braces
defun-close-semi))
(c-offsets-alist . ((arglist-close . +)
(arglist-intro . ++)
(substatement-open . 0)
(case-label . 4)
(block-open . 0)
(knr-argdecl-intro . -)
(comment-intro . 0)))
(c-echo-syntactic-information-p . t))
"My C Programming Style")
(c-add-style "PERSONAL" my-c-style)
(setq c-offset-alist '((member-init-intro . ++)))
;; Custom key bindings
(global-set-key (kbd "C-x _") 'maximize-window)
(global-set-key (kbd "C-c C-y") 'duplicate-line)
(global-set-key (kbd "M-(") 'æ-enclose-region)
(global-set-key (kbd "C-x w") 'webjump)
(global-set-key (kbd "<C-return>") 'open-line-below)
(global-set-key (kbd "<C-S-return>") 'open-line-above)
(global-set-key (kbd "C-x C-r") 'rename-current-buffer-file)
(global-set-key (kbd "C-x C-d") 'delete-current-buffer-file)
(global-set-key (kbd "C-x ~") 'toggle-char-case)
(define-key isearch-mode-map (kbd "<C-return>") #'isearch-exit-other-end)
(define-key gpolonkai/pers-map (kbd "m") 'hidden-mode-line-mode)
;; Kudos goes to
;; http://endlessparentheses.com/leave-the-cursor-at-start-of-match-after-isearch.html
(defun isearch-exit-other-end ()
"Exit isearch, at the opposite end of the string"
(interactive)
(isearch-exit)
(goto-char isearch-other-end))
;; Set up some global minor modes
(global-prettify-symbols-mode t)
;; Enable some functions
(put 'downcase-region 'disabled nil)
(put 'upcase-region 'disabled nil)
;; text-mode settings
(add-hook 'text-mode-hook (lambda () (visual-line-mode t)))
;; Add some symbols to be prettified
(setq prettify-symbols-alist
'(("lambda" . 955) ; λ
("->" . 8594) ; →
("=>" . 8658) ; ⇒
("map" . 8614))) ; ↦
;; …and some pairs to complete
;; TODO: maybe add-to-list is a better way to do it
(setq insert-pair-alist
'(
(40 41) ; ()
(91 93) ; []
(123 125) ; {}
(60 62) ; <>
(34 34) ; ""
(39 39) ; ''
(96 39) ; `'
(8220 8221) ; “”
(8222 8221) ; „”
(8216 8217) ;
(8249 8250) ;
(8250 8249) ;
(171 187) ; «»
(187 171) ; »«
))
;; Check for package upgrades every Monday so I dont forget.
(check-for-package-upgrades-on-day 1)

View File

@ -1,129 +0,0 @@
;; Some custom functions for buffer content manipulation
(defun delete-current-line ()
"Kill the whole line on which point is"
(interactive)
(beginning-of-line)
(kill-line 1))
(defun copy-func-prototype ()
"Copy the current function's prototype to the kill-ring"
(interactive)
(save-excursion
(beginning-of-defun)
(setq protocopy-begin (point))
(forward-list)
(setq protocopy-end (point))
(kill-ring-save protocopy-begin protocopy-end)))
(defun duplicate-line()
"Duplicate line at point."
(interactive)
(save-excursion
(move-beginning-of-line 1)
(kill-line)
(yank)
(open-line 1)
(next-line 1)
(yank)))
(defun toggle-char-case (arg-move-point)
"Toggle the case of the char after point. Based on Xah's toggle letter
case defun version 2015-12-22
URL `http://ergoemacs.org/emacs/modernization_upcase-word.html'
Version 2016-02-16"
(interactive "P")
(let ((case-fold-search nil))
(cond
((looking-at "[[:lower:]]") (upcase-region (point) (1+ (point))))
((looking-at "[[:upper:]]") (downcase-region (point) (1+ (point)))))
(cond
(arg-move-point (right-char)))))
; Copied from http://whattheemacsd.com/editing-defuns.el-01.html
(defun open-line-below ()
"Open a new line below point."
(interactive)
(end-of-line)
(newline)
(indent-for-tab-command))
(defun open-line-above ()
"Open a new line above point."
(interactive)
(beginning-of-line)
(newline)
(forward-line -1)
(indent-for-tab-command))
; Copied from http://whattheemacsd.com/file-defuns.el-01.html
(defun rename-current-buffer-file ()
"Renames current buffer and file it is visiting."
(interactive)
(let ((name (buffer-name))
(filename (buffer-file-name)))
(if (not (and filename (file-exists-p filename)))
(error "Buffer '%s' is not visiting a file!" name)
(let ((new-name (read-file-name "New name: " filename)))
(if (get-buffer new-name)
(error "A buffer named '%s' already exists!" new-name)
(rename-file filename new-name 1)
(rename-buffer new-name)
(set-visited-file-name new-name)
; TODO: this is suspicious for me…
(set-buffer-modified-p nil)
(message "File '%s' successfully renamed to '%s'"
name (file-name-nondirectory new-name)))))))
; Copied from http://whattheemacsd.com/file-defuns.el-02.html
(defun delete-current-buffer-file ()
"Removes file connected to current buffer and kills the
buffer."
(interactive)
(let ((filename (buffer-file-name))
(name (buffer-name))
(buffer (current-buffer)))
(if (not (and filename (file-exists-p filename)))
(kill-buffer buffer)
(when (yes-or-no-p "Are you sure you want to remove this file? ")
(delete-file filename)
(kill-buffer buffer)
(message "File '%s' successfully removed" filename)))))
; delete-char or close eshell
; Copied from https://ryuslash.org/posts/C-d-to-close-eshell.html
(defun eshell-C-d ()
"Either call `delete-char' interactively or quit."
(interactive)
(condition-case err
(call-interactively #'delete-char)
(error (if (and (eq (car err) 'end-of-buffer)
(looking-back eshell-prompt-regexp))
(kill-buffer)
(signal (car err) (cdr err))))))
(defun æ-kill-or-copy-whole-line (kill)
"Kill or copy the whole line point is on.
If KILL is non-nil, the line gets killed. Otherwise, it gets just
copied to the kill-ring."
(interactive "P")
(if kill
(kill-whole-line)
(let ((beginning (progn (beginning-of-line) (point)))
(end (progn (end-of-line) (point))))
(copy-region-as-kill beginning end))))

File diff suppressed because it is too large Load Diff

View File

@ -1,34 +0,0 @@
(defun æ-enclose-region (character &optional start end)
"Enclose region in CHARACTER. If region is empty, simply inserts
CHARACTER two times and moves point between them.
If character is present in `insert-pair-alist', this function
will enclose region in the corresponding pair. In this case,
CHARACTER must be the opening member of the pair."
(interactive "cWhat character? \nr")
(setq open character close character)
(let ((pair (assq character insert-pair-alist)))
(if pair
(if (nth 2 pair)
(setq open (nth 1 pair) close (nth 2 pair))
(setq open (nth 0 pair) close (nth 1 pair)))))
(unless (and open close)
(setq open character)
(setq close character))
(unless (use-region-p)
(setq start (point) end (point)))
(save-excursion
(goto-char end)
(insert-char close)
(goto-char start)
(insert-char open))
(unless (use-region-p)
(forward-char)))

View File

@ -0,0 +1,94 @@
;;; flycheck-swagger-tools --- Flycheck checker for swagger-tools.
;; Copyright (C) 2017 Marc-André Goyette
;; Author: Marc-André Goyette <goyette.marcandre@gmail.com>
;; URL: https://github.com/magoyette/flycheck-swagger-tools
;; Version: 0.1.0
;; Package-Requires: ((emacs "25"))
;; Keywords: swagger
;; This program is free software; you can redistribute it 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 program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; For a full copy of the GNU General Public License
;; see <http://www.gnu.org/licenses/>.
;;; Commentary:
;; flycheck-swagger-tools provides a Flycheck checker for swagger-tools.
;; This allows to validate Swagger YAML and JSON files.
;; The checker can be activating by requiring this package.
;; (require 'flycheck-swagger-tools)
;; By default, only the first 4000 characters of a file are scanned to
;; find the swagger 2.0 element. To avoid stack overflow in Emacs
;; multi-line regex, this value is necessary. The defcustom
;; swagger-tools-predicate-regexp-match-limit can be used to change this
;; limit. That could be necessary for YAML files with long initial comments.
;;; Code:
(require 'flycheck)
(defgroup swagger-tools nil
"Validate swagger files with swagger-tools."
:group 'swagger
:prefix "swagger-tools-")
(defcustom swagger-tools-predicate-regexp-match-limit 4000
"Defines the number of characters that will be scanned at the beginning of a
buffer to find the swagger 2.0 element."
:type 'integer
:group 'swagger-tools)
;;;###autoload
(flycheck-define-checker swagger-tools
"A checker that uses swagger tools to validate Swagger2 JSON and YAML files.
See URL `https://github.com/apigee-127/swagger-tools'."
:command ("swagger-tools" "validate" source)
:predicate
(lambda ()
(string-match
"\\(.\\|\n\\)*\\([[:space:]]\\|\"\\|\\'\\)*swagger\\([[:space:]]\\|\"\\|\\'\\)*:[[:space:]]*[\"\\']2.0[\"\\'].*"
;; Need to avoid stack overflow for multi-line regex
(buffer-substring 1 (min (buffer-size)
swagger-tools-predicate-regexp-match-limit))))
:error-patterns
((warning line-start " " (message (one-or-more not-newline)
"is not used"
(one-or-more not-newline))
line-end)
;; js-yaml error with position
(error line-start " error: " (message) " at line " line ", column " column ":" line-end)
;; js-yaml error without position
(error line-start " error: " (message) ": " (one-or-more not-newline) line-end)
;; swagger-tools error (always contain a # symbol in the message)
(error line-start
" "
(message (optional (one-or-more not-newline))
(one-or-more "#")
(one-or-more not-newline))
line-end))
:error-filter
;; Add line number 1 if the error has no line number
(lambda (errors)
(let ((errors (flycheck-sanitize-errors errors)))
(dolist (err errors)
(unless (flycheck-error-line err)
(setf (flycheck-error-line err) 1)))
errors))
:modes (json-mode openapi-yaml-mode yaml-mode))
(add-to-list 'flycheck-checkers 'swagger-tools)
(provide 'flycheck-swagger-tools)
;;; flycheck-swagger-tools.el ends here

View File

@ -1,24 +0,0 @@
;; Copied from http://emacs-doctor.com/emacs-strip-tease.html
(defvar hidden-mode-line-mode nil)
(defvar hide-mode-line nil)
(define-minor-mode hidden-mode-line-mode
"Minor mode to hide the mode-line in the current buffer."
:init-value nil
:global nil
:variable hidden-mode-line-mode
:group 'editing-basics
(if hidden-mode-line-mode
(setq hide-mode-line mode-line-format
mode-line-format nil)
(setq mode-line-format hide-mode-line
hide-mode-line nil))
(force-mode-line-update)
(redraw-display)
(when (and (called-interactively-p 'interactive)
hidden-mode-line-mode)
(run-with-idle-timer
0 nil 'message
(concat "Hidden Mode Line Mode enabled. "
"Use M-x hidden-mode-line-mode to make mode-line appear."))))

View File

@ -1,65 +0,0 @@
;;; gnu-c-header.el --- function to add a header to the C files licensed under the GPL
;; Author: Gergely Polonkai <gergely@polonkai.eu>
;; Copyright: public domain
;; URL: http://gergely.polonkai.eu/blog/2014/09/26/emacs-adding-gnu-c-headers
;; Keywords: gnu, c, header, helper, utilities
;;; Commentary:
;;; Code:
(defun file-name-base-with-extension (&optional filename)
"Return the base name of the FILENAME without its directory path.
FILENAME defaults to `buffer-file-name'."
(file-name-nondirectory (or filename (buffer-file-name))))
(defun add-gnu-c-header (progname purpose)
"Add a GNU GPL header to the current buffer"
(interactive "sProgram name (ie: MyProgram): \nsPurpose of the file (ie: string utility functions): ")
(save-excursion
(goto-char (point-min))
(insert (concat
"/* "
(file-name-base-with-extension buffer-file-name)
" - "
purpose
" for "
progname
"\n"
" *\n"
" * Copyright (C) "
(format-time-string "%Y" (current-time))
" "
(user-full-name)
"\n"
" *\n"))
(let ((start (point)))
(insert (concat
" * "
progname
" is \n * free software: you can redistribute it 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."))
(let ((end (point)))
(fill-region start end)))
(insert (concat
"\n"
" *\n"))
(let ((start (point)))
(insert (concat
" * "
progname
" is \n * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details."))
(let ((end (point)))
(fill-region start end)))
(insert (concat
"\n"
" *\n"))
(let ((start (point)))
(insert " * You \n * should have received a copy of the GNU General Public License along with this software; if not, see <http://www.gnu.org/licenses/>.")
(let ((end (point)))
(fill-region start end)))
(insert (concat
"\n"
" */\n"))
))
(provide 'gnu-c-header)
;;; gnu-c-header.el ends here

27
lisp/gp-mouse.el Normal file
View File

@ -0,0 +1,27 @@
;;; gp-mouse --- Extra mouse functionality
;;; Commentary:
;;; Code:
(require 'mouse)
(defun gpolonkai/event-in-current-window-p (event)
"Check if EVENT happened in the current window."
(let ((current-window (selected-window))
(event-window (posn-window (event-start event))))
(eq current-window event-window)))
(defun gpolonkai/mouse-set-point (click &optional promote-to-region)
"Set mouse position.
If CLICK happened in an inactive window, select that window without setting point"
(interactive "e\np")
(if (gpolonkai/event-in-current-window-p click)
(call-interactively 'mouse-set-point)
(call-interactively 'mouse-select-window)))
(global-set-key [mouse-1] 'mouse-select-window-or-set-point)
(global-unset-key [down-mouse-1])
(provide 'gp-mouse)
;;; gp-mouse.el ends here

70
lisp/minari.el Normal file
View File

@ -0,0 +1,70 @@
;;; minari.el --- Calculate Minari dates
;;; Commentary:
;;
;;; Code:
(defconst minari-special-day-names
'("Hëður" "Rideyy" "Morkh" "Morkh+" "Khmerd" "Chamog")
"Names of the special (monthless) days of the year.")
(defconst minari-weekday-names
'("Rounn" "Mïrdu" "Hëmi" "Drak" "Þodon" "Charm")
"Names of weekdays.")
(defconst minari-month-names
'("Mëbel" "Dirann" "Ma"
"Gerub" "Þrei" "Dimoc"
"Xentor" "Mëðïr" "Draþ"
"Quaden" "Ridïmel" "Rodom")
"Names of months.")
(defun minari-today-string ()
"Calculate today's date according to the Minari Calendar."
(let ((today (decode-time (current-time))))
;; FIXME: Im not sure about this one… If I increment by 11, I get a
;; wrong date according to my GNOME Shell extension. If I increment by
;; 10, the date is OK, but by calculating it in my head, its bad.
(incf (nth 3 today) 10)
(let* ((minari-leap (date-leap-year-p (nth 5 today)))
(doy (time-to-day-in-year (apply 'encode-time today)))
(minari-year (- (nth 5 today) 1873))
(minari-month 0)
(minari-doy 0)
(minari-day 0)
(minari-weekday 0)
(minari-special-day -1))
(cond
((eq doy 0) (setq minari-special-day 0))
((eq doy 91) (setq minari-special-day 1))
((eq doy 182) (setq minari-special-day 2))
((and (eq doy 183) minari-leap) (setq minari-special-day 3))
((and (eq doy 273) (not minari-leap)) (setq minari-special-day 4))
((and (eq doy 274) minari-leap) (setq minari-special-day 4))
((and (eq doy 364) (not minari-leap)) (setq minari-special-day 5))
((and (eq doy 365) minari-leap) (setq minari-special-day 5))
(t (let ((decr 0)
(minari-doy doy))
(when (> minari-doy 0) (incf decr))
(when (> minari-doy 91) (incf decr))
(when (> minari-doy 182) (incf decr))
(when (and (> minari-doy 183) minari-leap) (incf decr))
(when (and (> minari-doy 273) (not minari-leap)) (incf decr))
(when (and (> minari-doy 274) minari-leap) (incf decr))
(setq minari-doy (- minari-doy (- decr 1))
minari-month (round (fceiling (/ minari-doy 30.0)))
minari-day (% minari-doy 30))
(when (eq minari-day 0) (setq minari-day 30))
(setq minari-weekday (% minari-day 6)))))
(if (eq -1 minari-special-day)
(format "%d %s %s (%s)"
minari-year
(nth (- minari-month 1) minari-month-names)
minari-day
(nth minari-weekday minari-weekday-names))
(nth (- minari-special-day 1) minari-special-day-names)))))
(provide 'minari)
;;; minari.el ends here

17
lisp/modeline.el Normal file
View File

@ -0,0 +1,17 @@
(setq-default
mode-line-format
("%e"
mode-line-front-space
mode-line-mule-info
mode-line-client
mode-line-modified
mode-line-remote
mode-line-frame-identification
mode-line-buffer-identification
" "
mode-line-position
(vc-mode vc-mode)
" "
mode-line-modes
mode-line-misc-info
mode-line-end-spaces))

View File

@ -1,102 +0,0 @@
;;; package-manip.el --- Utility functions to check if package upgrades are available
;;; Commentary:
;; I should add one.
;; Credits go to http://emacs.stackexchange.com/a/16407/507
;;; Code:
(defun package-upgrade-all ()
"Upgrade all packages automatically without showing *Packages* buffer."
(interactive)
(package-refresh-contents)
(let (upgrades)
(cl-flet ((get-version (name where)
(let ((pkg (cadr (assq name where))))
(when pkg
(package-desc-version pkg)))))
(dolist (package (mapcar #'car package-alist))
(let ((in-archive (get-version package package-archive-contents)))
(when (and in-archive
(version-list-< (get-version package package-alist)
in-archive))
(push (cadr (assq package package-archive-contents))
upgrades)))))
(if upgrades
(when (yes-or-no-p
(message "Upgrade %d package%s (%s)? "
(length upgrades)
(if (= (length upgrades) 1) "" "s")
(mapconcat #'package-desc-full-name upgrades ", ")))
(save-window-excursion
(dolist (package-desc upgrades)
(let ((old-package (cadr (assq (package-desc-name package-desc)
package-alist))))
(package-install package-desc)
(package-delete old-package)))))
(message "All packages are up to date"))))
(defun check-todays-package-upgrade-p (&optional no-save)
"Check if automatic package upgrade has been performed today.
This function reads the date of the last check from the
\"last-package-upgrade\" file. Where this file is looked for is
guessed as follows:
If `user-emacs-cache-directory' is set (e.g. by the
`xdg-paths.el' package available from
https://github.com/tomprince/xdg-paths-el), the timestamp file is
opened from there. Otherwise, it will be read from
`user-emacs-directory'
If NO-SAVE is 'nil', the current date will be saved to the
timestamp file.
The return value of this function will be 't' if the timestamp
file contains todays date, 'nil' otherwise."
(let ((tsfile-location (if (boundp 'user-emacs-cache-directory)
user-emacs-cache-directory
user-emacs-directory)))
(unless (and (file-exists-p tsfile-location)
(file-accessible-directory-p tsfile-location))
(make-directory tsfile-location t))
(let ((timestamp-today t)
(timestamp-buffer (find-file-literally
(expand-file-name "last-package-upgrade"
tsfile-location))))
(with-current-buffer timestamp-buffer
(goto-char 0)
(unless (looking-at-p (format-time-string "%Y-%m-%d"))
(unless no-save
(erase-buffer)
(insert (format-time-string "%Y-%m-%d"))
(save-buffer 0))
(setq timestamp-today nil))
(kill-buffer)
timestamp-today))))
(defun check-for-package-upgrades-on-day (&optional day-number)
"Check for package upgrades if today is DAY-NUMBER.
DAY-NUMBER can be anything between 0 and 7, inclusive. Both 0
and 7 denote Sunday to make both types of users happy.
If DAY-NUMBER is 'nil', it defaults to today's day."
(let ((actual-day-number (cond
((eq day-number nil) (string-to-number (format-time-string "%u")))
((eq day-number 0) 7)
(t day-number))))
(when (and (eq day-number (string-to-number (format-time-string "%u")))
(not (check-todays-package-upgrade-p t)))
(message "Calling")
(when (call-interactively 'package-upgrade-all)
(message "Called")
(check-todays-package-upgrade-p nil)))))
(provide 'package-manip)
;;; package-manip.el ends here

View File

@ -1,19 +0,0 @@
(defun get-number-at-point ()
(interactive)
(skip-chars-backward "0123456789.-")
(or (looking-at "[0123456789.-]+")
(error "No number at point"))
(string-to-number (match-string 0)))
(defun round-number-at-point-to-decimals (decimal-count)
(interactive "NDecimal count: ")
(let ((mult (expt 10 decimal-count)))
(replace-match (number-to-string
(/
(fround
(*
mult
(get-number-at-point)))
mult)))))
(global-set-key (kbd "C-c r") 'round-number-at-point-to-decimals)

View File

@ -1,7 +0,0 @@
(defun org-space-key (&optional arg)
"Insert two spaces after a period."
(interactive "p")
(when (looking-back "[.!?…]")
(call-interactively 'self-insert-command arg))
(call-interactively 'self-insert-command arg))

View File

@ -1,27 +0,0 @@
(defun toggle-window-split ()
(interactive)
(if (= (count-windows) 2)
(let* ((this-win-buffer (window-buffer))
(next-win-buffer (window-buffer (next-window)))
(this-win-edges (window-edges (selected-window)))
(next-win-edges (window-edges (next-window)))
(this-win-2nd (not (and (<= (car this-win-edges)
(car next-win-edges))
(<= (cadr this-win-edges)
(cadr next-win-edges)))))
(splitter
(if (= (car this-win-edges)
(car (window-edges (next-window))))
'split-window-horizontally
'split-window-vertically)))
(delete-other-windows)
(let ((first-win (selected-window)))
(funcall splitter)
(if this-win-2nd (other-window 1))
(set-window-buffer (selected-window) this-win-buffer)
(set-window-buffer (next-window) next-win-buffer)
(select-window first-win)
(if this-win-2nd (other-window 1))))
(error "This works only for two windows!")))
(global-set-key (kbd "C-x |") 'toggle-window-split)

View File

@ -1,11 +0,0 @@
(defun transpose-windows (arg)
"Transpose the buffers shown in two windows."
(interactive "p")
(let ((selector (if (>= arg 0) 'next-window 'previous-window)))
(while (/= arg 0)
(let ((this-win (window-buffer))
(next-win (window-buffer (funcall selector))))
(set-window-buffer (selected-window) next-win)
(set-window-buffer (funcall selector) this-win)
(select-window (funcall selector)))
(setq arg (if (plusp arg) (1- arg) (1+ arg))))))

View File

@ -40,7 +40,7 @@
;;; user-documents-directory ~/Documents ;;; user-documents-directory ~/Documents
;;; ;;;
;;; Some convenience functions are defined to locate files in these ;;; Some convenience functions are defined to locate files in these
;;; directories and to add user lisp to load-path. ;;; directories and to add user Lisp to load-path.
;;; ;;;
;;; Some advantages are: ;;; Some advantages are:
;;; ;;;
@ -114,28 +114,28 @@
;;; Code: ;;; Code:
(eval-when-compile (eval-when-compile
(require 'cl)) (require 'cl-lib))
;;; Directories definition. ;;; Directories definition.
(defvar user-emacs-config-directory nil (defvar user-emacs-config-directory nil
"The directory where the emacs user configuration files are stored at.") "The directory where the Emacs user configuration files are stored at.")
(defvar user-emacs-data-directory nil (defvar user-emacs-data-directory nil
"The directory where the emacs user data and lisp files are stored at. "The directory where the Emacs user data and Lisp files are stored at.
\\[user-emacs-directory] is set to this directory.") \\[user-emacs-directory] is set to this directory.")
(defvar user-emacs-cache-directory nil (defvar user-emacs-cache-directory nil
"The directory where the emacs user expendable files are stored at. "The directory where the Emacs user expendable files are stored at.
Files stored here should not be missed when deleted, apart a Files stored here should not be missed when deleted, apart a
temporary loss in speed.") temporary loss in speed.")
(defvar user-emacs-lisp-directory nil (defvar user-emacs-lisp-directory nil
"The directory where the user lisp packages are stored at. "The directory where the user Lisp packages are stored at.
This directory is added to \\[load-path].") This directory is added to \\[load-path].")
@ -146,72 +146,73 @@ This directory is added to \\[load-path].")
(defun xdg-user-dir (dirname) (defun xdg-user-dir (dirname)
"Given NAME, run 'xdg-user-dir NAME' and return the result in a string. "Given DIRNAME, run 'xdg-user-dir DIRNAME' and return the result in a string.
If the command fails, return NIL." If the command fails, return NIL."
(let ((command (concat "xdg-user-dir " dirname))) (let ((command (concat "xdg-user-dir " dirname)))
(if (zerop (shell-command command)) (if (zerop (shell-command command))
(substring (shell-command-to-string command) 0 -1) (substring (shell-command-to-string command) 0 -1)
nil))) nil)))
(defun locate-user-file (filename &optional type) (defun locate-user-file (filename &optional type)
"Given a file, locate it in the user files. "Given a file FILENAME, locate it in the user files.
If TYPE is NIL or 'data, the file will be located in user-emacs-data-directory. If TYPE is NIL or 'data, the file will be located in user-emacs-data-directory.
If 'config, it will be located in user-emacs-config-directory. If `config', it will be located in user-emacs-config-directory.
If 'cache, it will be located in user-emacs-cache-directory. If `cache', it will be located in user-emacs-cache-directory.
If 'lisp, it will be located in user-emacs-lisp-directory. If `lisp', it will be located in user-emacs-lisp-directory.
If 'documents, it will be located in user-documents-directory. If `documents', it will be located in user-documents-directory.
If the category is wrong, an error will be signaled. If the category is wrong, an error will be signaled."
"
(expand-file-name filename (expand-file-name filename
(case type (cond
((nil data) user-emacs-data-directory) ((or (not type) (eq type 'data)) user-emacs-data-directory)
('config user-emacs-config-directory) ((eq type 'config) user-emacs-config-directory)
('lisp user-emacs-lisp-directory) ((eq type 'lisp) user-emacs-lisp-directory)
('cache user-emacs-cache-directory) ((eq type 'cache) user-emacs-cache-directory)
('documents user-documents-directory) ((eq type 'documents) user-documents-directory)
(t (error "The category %s is not valid" type))))) (t (error "The category %s is not valid" type)))))
(defun locate-user-config-file (filename) (defun locate-user-config-file (filename)
"Given a file, locate it in `user-emacs-config-directory`." "Given a file FILENAME, locate it in `user-emacs-config-directory`."
(locate-user-file filename 'config)) (locate-user-file filename 'config))
(defun locate-user-lisp (filename) (defun locate-user-lisp (filename)
"Given a file, locate it in `user-emacs-lisp-directory`." "Given a file FILENAME, locate it in `user-emacs-lisp-directory`."
(locate-user-file filename 'lisp)) (locate-user-file filename 'lisp))
(defun add-to-path (directory &optional append) (defun add-to-path (directory &optional append)
"Given DIRECTORY, it it exists and is indeed a directory, add "Given DIRECTORY, it it exists and is a directory, add it to `load-path`.
it to `load-path`."
APPEND is passed verbatim to `add-to-list'."
(interactive "D") (interactive "D")
(if (file-directory-p directory) (if (file-directory-p directory)
(add-to-list 'load-path directory append) (add-to-list 'load-path directory append)
(error "The directory \"%s\" does not exist or isn't a directory." directory))) (error "The directory \"%s\" does not exist or isn't a directory" directory)))
(defun add-user-lisp-to-path (directory &optional append) (defun add-user-lisp-to-path (directory &optional append)
"Given DIRECTORY, it it exists and is indeed a directory, add "Given DIRECTORY, if it exists and is a directory, add it to `load-path`.
it to `load-path`."
APPEND is passed directly to `add-to-path'."
(interactive "D") (interactive "D")
(add-to-path (locate-user-lisp directory) append)) (add-to-path (locate-user-lisp directory) append))
;; Set the default variables if they have no name. ;; Set the default variables if they have no name.
(macrolet ((setq-if-null (variable value) (cl-macrolet ((setq-if-null (variable value)
`(if (null ,variable) `(if (null ,variable)
(setf ,variable ,value))) (setf ,variable ,value)))
(getdir (variable fallback) (getdir (variable fallback)
`(expand-file-name "emacs/" (or (getenv ,variable) ,fallback)))) `(expand-file-name "emacs/" (or (getenv ,variable) ,fallback))))
(setq-if-null user-emacs-config-directory (getdir "XDG_CONFIG_HOME" "~/.config/")) (setq-if-null user-emacs-config-directory (getdir "XDG_CONFIG_HOME" "~/.config/"))
(setq-if-null user-emacs-data-directory (getdir "XDG_DATA_HOME" "~/.local/share/")) (setq-if-null user-emacs-data-directory (getdir "XDG_DATA_HOME" "~/.local/share/"))
(setq-if-null user-emacs-cache-directory (getdir "XDG_CACHE_HOME" "~/.cache/")) (setq-if-null user-emacs-cache-directory (getdir "XDG_CACHE_HOME" "~/.cache/"))
@ -219,12 +220,10 @@ it to `load-path`."
(setq-if-null user-documents-directory (or (xdg-user-dir "DOCUMENTS") "~/Documents"))) (setq-if-null user-documents-directory (or (xdg-user-dir "DOCUMENTS") "~/Documents")))
;; Set the user-emacs-directory to user-emacs-data-directory.
;(setf user-emacs-directory user-emacs-data-directory)
;; Add the user lisp directory to path. ;; Add the user lisp directory to path.
(add-to-list 'load-path user-emacs-lisp-directory) (add-to-list 'load-path user-emacs-lisp-directory)
(provide 'xdg-paths) (provide 'xdg-paths)
;;; xdg-paths.el ends here

View File

@ -1,19 +0,0 @@
(defun zim-timestamp ()
(with-temp-buffer
(insert (format-time-string "%Y-%m-%dT%H:%M:%S%z"))
(forward-char -2)
(insert ":")
(buffer-string)))
(defun insert-zim-timestamp ()
(interactive)
(insert (zim-timestamp)))
(defun insert-zim-header ()
(interactive)
(save-excursion
(goto-char (point-min))
(insert
(concat "Content-Type: text/x-zim-wiki\n"
"Wiki-Format: zim 0.4\n"
"Creation-Date: " (zim-timestamp) "\n\n"))))

11
snippets/c-mode/gobh Normal file
View File

@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# name: GObject H boilerplate
# key: gobh
# --
# include <glib-object.h>
G_BEGIN_DECLS
$0
G_END_DECLS

View File

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# name: Protect with ifdef
# key: defprot
# --
#ifndef ${1:name}
# define $1
$0
#endif /* $1 */

View File

@ -0,0 +1,19 @@
# -*- mode: snippet -*-
# name: agpl-header
# key: agpl
# --
# ${1:project_name}
# Copyright (C) ${2:year} ${3:author_name}
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

View File

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# name: flask_sqlalchemy_model
# key: model
# --
class ${1:name}(db.Model):
__tablename__ = '${2:tablename}'
id = db.Column(db.Integer, primary_key=True)
$0

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: New unittest
# key: testdef
# --
def test_${1:name}(self):
"""${2:docstring}
"""
$0self.assertTrue(False)

View File

@ -0,0 +1,14 @@
# -*- mode: snippet -*-
# name: Translatable Flask-SQLAlchemy model
# key: tmodel
# --
class ${1:name}(Translatable, db.Model):
__tablename__ = '${2:tablename}s'
id = db.Column(db.Integer, primary_key=True)
class $1Translation(translation_base($1)):
__tablename__ = '$2_translations'
$0

View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Viewport Meta tag
# key: vp
# --
<meta name="viewport" content="width=device-width, initial-scale=1.0">