Commit graph

199 commits

Author SHA1 Message Date
Matthew Fidler
3d9d4c5a63 Add :height property to images
This allows rescaling with imagemagick.
2016-04-13 11:31:56 -05:00
Matthew Fidler
c5ce3cdfab Use imagemagick when available 2016-04-12 14:03:43 -05:00
Matthew Fidler
fe1171a663 Merge branch 'master' of github.com:ryuslash/mode-icons 2016-04-11 07:51:17 -05:00
Matthew Fidler
5937dbe9c8 Change to -get-face to --get-face,
Also use (mode-icons--generate-minor-mode-list face) in powerline
2016-04-11 07:49:43 -05:00
44d59ae0ba Add missing setq argument
Emacs 25 requires ‘setq’ to have an even number of arguments. Previously
a ‘setq’ call with a single argument was allowed to mean the same as if
nil was passed as the second argument, but this has been changed.

Fix #23
2016-04-11 10:43:06 +02:00
Matthew Fidler
dfdfb573e4 One face function 2016-04-07 10:22:27 -05:00
Matthew Fidler
0f1c9fcefa Pass active state to most functions 2016-04-07 09:34:55 -05:00
Matthew Fidler
d2ad4e7784 Check to make sure the buffer hasn't been deleted. 2016-04-06 11:01:16 -05:00
Matthew Fidler
2ad7e8409e Reset only once
Also make sure the minor modes are reset in the same buffer as the
major mode.
2016-04-06 09:52:18 -05:00
Matthew Fidler
a059182cf3 Reset twice, once to ensure the minor mode is reset 2016-04-06 09:30:56 -05:00
Matthew Fidler
2812f30418 Staging additional changes for Issue #22 2016-04-06 09:26:50 -05:00
Matthew Fidler
5644871fa3 mode-icons-get-icon-display works for all types.
Fix Issue #22
2016-04-06 09:23:28 -05:00
Matthew Fidler
f030c261c5 Add png and xpm extension icons 2016-04-04 16:13:53 -05:00
Matthew Fidler
049b8d93de Change message mode icon. 2016-04-04 14:50:13 -05:00
Matthew Fidler
d31b9283ff Add 'ext type that creates generic icons.
Requires gimp, FontAwesome and Haettenschweiler to generate
2016-04-04 12:35:54 -05:00
Matthew Fidler
6ebd76ab71 Better powerline support 2016-04-04 10:41:20 -05:00
Matthew Fidler
8897af5b4a Flatten & anti-alias greyscale xpms.
Also fix major-mode rendering
2016-04-04 10:01:07 -05:00
Matthew Fidler
ec1f3b7472 Generate xpms for font icons, when not present
Also use generate xpms when font icons are not present
2016-04-04 08:15:38 -05:00
Matthew Fidler
f1e6f30d85 Fix Javascript indicator 2016-04-01 22:05:13 -05:00
Matthew Fidler
80afd3b1c3 Add back font support. 2016-04-01 22:00:13 -05:00
Matthew Fidler
72255f753d Fall back to mode-name if not generated yet. 2016-04-01 21:51:49 -05:00
Matthew Fidler
a180dfb035 Convert png type to xpm with gimp.
Allows grayscale conversion of xpm files
2016-04-01 21:49:13 -05:00
Matthew Fidler
bdbd35e2fd Add gimp support and convert png->xpm with gimp.
Also change 🌿 to 🌴 for Undo-Tree mode. Add xpm (generated
by script).
2016-04-01 21:10:43 -05:00
Matthew Fidler
7c1de479b3 Add emoji support. (Undo-Tree = 🌿)
Allow undo-tree to have the 🌿 emoji
Addresses Issue #20
2016-04-01 01:28:18 -05:00
Matthew Fidler
fd94d1a276 Add mode-icons-grayscale-transform option 2016-04-01 00:13:00 -05:00
Matthew Fidler
6fe8f3d1b6 Allow powerline to recolor mode-images 2016-03-31 23:34:44 -05:00
Matthew Fidler
9403061cbf Allow desaturated mode-line icons. 2016-03-31 12:38:09 -05:00
Matthew Fidler
34dc1e8851 Display ergoemacs-mode icon.
Take out the undo redo madness
2016-03-31 08:59:50 -05:00
Matthew Fidler
98d03def53 Cache based on custom enabled themes. 2016-03-31 08:34:05 -05:00
Matthew Fidler
c9150dc0c4 Drop unused variables. 2016-03-31 00:18:05 -05:00
Matthew Fidler
b014d746ea Support multiple types of icons for color changes.
These functions now support the xpm-bw type
- mode-icons--generate-narrow
- mode-icons--read-only-status
- mode-icons--modified-construct
- mode-icons--mode-line-eol-desc

This is done by running `mode-icons-propertize-mode`
2016-03-31 00:07:37 -05:00
Matthew Fidler
9d2d20f2c3 Allow xpm-bw with major-modes.
Also add option mode-icons-change-mode-name to suppress changing the
actual mode-name and just displaying the icons.
2016-03-30 23:42:55 -05:00
Matthew Fidler
3388b75efe Speed up mode-line calculation 2016-03-30 16:00:21 -05:00
Matthew Fidler
a18ec9cfc7 Allow minor-modes images to change color.
This is based on if the window is active.
2016-03-30 15:32:36 -05:00
Matthew Fidler
6df4182846 Add name for mode icons with modifiable colors 2016-03-30 14:54:05 -05:00
Matthew Fidler
160f814b0d Remove double // in file names 2016-03-30 14:21:50 -05:00
Matthew Fidler
069cc21c7f Cleanup documentation & code 2016-03-30 14:18:14 -05:00
Matthew Fidler
323b48e416 Mode icons now updates based on an idle timer
- This should allow modes to turn on in a hook and still being
  recognized by mode-icons.

- This may also address issue #19
2016-03-30 13:52:40 -05:00
Matthew Fidler
d493f67631 Tag more grayscale images 2016-03-30 13:32:08 -05:00
Matthew Fidler
6df89d5781 Allow gray-scale icons color changing icons.
Change golden-ratio mode to be a color changing icon
2016-03-30 10:58:50 -05:00
Matthew Fidler
ddb4e803d7 Make sure replaced colors are case insensitive. 2016-03-30 09:38:05 -05:00
Matthew Fidler
0601dc9218 Allow matching black and white images to mode-line 2016-03-30 09:34:11 -05:00
Matthew Fidler
6c971563b8 Match more C, C++, C#, Java and PHP mode lighters.
See Issue #18
2016-03-30 08:49:03 -05:00
Syohei YOSHIDA
3bcd1501a4 Use cl-lib function instead of cl.el for byte-compile warning 2016-03-30 10:05:19 +09:00
b475cfb179 Add js2-mode icon 2016-03-30 01:50:38 +02:00
Matthew Fidler
894800248d Add helm icon 2016-03-29 14:48:40 -05:00
Matthew Fidler
35512cccfb Add drag stuff, and fix quote 2016-03-29 09:28:13 -05:00
rho
133eaa7262 added dockerfile icon 2016-03-26 10:49:48 +05:45
Matthew Fidler
5ceab27088 Be more careful with matching major and minor modes.
Partially addresses Issue #14
2016-03-24 08:19:05 -05:00
Matthew Fidler
6d592fb195 Make sure that case in matches is preserved 2016-03-15 08:00:10 -05:00
Matthew L. Fidler
4febdb5418 Add various icons
- Icy
- Apple
- Auto-complete
- Ergoemacs
- Messages
- Fundamental
- Configuration
2016-03-14 14:56:00 -05:00
Matthew L. Fidler
4bf5db38cb Don't allow diminished major-modes. 2016-03-02 09:23:14 -06:00
Matthew L. Fidler
12587ae51d New icon indicates file is locked by another user. 2016-03-02 00:16:49 -06:00
d5e3b538c1 Merge remote-tracking branch 'mattfidler/font-exists' 2016-02-26 20:15:36 +01:00
Matthew L. Fidler
b9702ec376 Have mode icons detect if font is present
- Also add IcoMoon font
- Change the Unix encoding font to be:
  - IcoMoon Penguin or
  - Font Mfizz's Ubuntu or
  - Font Awesome Penguin

Depending on what fonts are installed
2016-02-26 10:56:35 -06:00
Matthew L. Fidler
78a6347835 Add modified outside of emacs icon 2016-02-26 09:29:43 -06:00
Matthew L. Fidler
89bfa214dc Add modified outside of emacs flag and icon 2016-02-26 08:55:07 -06:00
Matthew L. Fidler
3c289126bc Add company-mode icon 2016-02-23 13:28:37 -06:00
Matthew L. Fidler
5e15076279 Add missing return of mod 2016-02-22 21:55:18 -06:00
Matthew L. Fidler
3ffef2230f Make sure the functions return a string (not nil) 2016-02-22 19:15:16 -06:00
d2c9926a8e Bump version 2016-02-21 15:03:26 +01:00
6d56f6c928 Update mode-icons.el commentary section 2016-02-21 14:59:31 +01:00
15d9481daa Untabify mode-icons.el 2016-02-21 14:24:16 +01:00
3838e71b90 Remove trailing spaces 2016-02-21 13:44:04 +01:00
a561df40b1 Update copyright statement 2016-02-21 13:43:50 +01:00
Matthew L. Fidler
67193ea0b3 Add undecided file-type 2016-02-20 00:30:19 -06:00
Matthew L. Fidler
66730cf972 Allow Icon + Major mode name 2016-02-20 00:14:52 -06:00
Matthew L. Fidler
2f78ec906e Add spacing between icons 2016-02-20 00:09:35 -06:00
Matthew L. Fidler
24631c5322 Add end of line icons 2016-02-19 16:00:18 -06:00
Matthew L. Fidler
6e7773b452 Update save-buffer to work with org-mode/ergoemacs-mode 2016-02-19 15:10:24 -06:00
Matthew L. Fidler
a3979e332c Add saved status icons 2016-02-19 12:45:02 -06:00
Matthew L. Fidler
f186fda5f3 Add read-only icons 2016-02-19 12:04:58 -06:00
Matthew L. Fidler
8de4cbe7c2 Add narrow icon 2016-02-18 23:13:20 -06:00
Matthew L. Fidler
8631548a87 Add Info Icon 2016-02-18 08:39:26 -06:00
Matthew L. Fidler
db724ed586 Add SAS and BUGS icons 2016-02-12 00:21:37 -06:00
Matthew L. Fidler
1566f2fd3d Add autohotkey 2016-02-11 23:45:14 -06:00
Matthew L. Fidler
af13b6108f Add octave 2016-02-11 23:30:38 -06:00
Matthew L. Fidler
cc5a0a5c0f Add mfizz icons 2016-02-11 23:03:36 -06:00
Matthew L. Fidler
9198e7477e Add C++ and change specs to integers 2016-02-11 22:37:56 -06:00
Matthew L. Fidler
62c8be6872 Add bibtex icon 2016-02-11 22:00:56 -06:00
Matthew L. Fidler
984787b860 Add golden ratio icon 2016-02-11 13:46:46 -06:00
Matthew L. Fidler
78496fa8e8 Remove dimished modes 2016-02-11 13:25:23 -06:00
Matthew L. Fidler
7776bc2aab Add info for woman 2016-02-11 10:15:34 -06:00
Matthew L. Fidler
ae0669b530 Add help icon 2016-02-11 09:30:21 -06:00
Matthew L. Fidler
74539f76ca Fix go specification 2016-02-11 09:28:17 -06:00
Matthew L. Fidler
d7d7c90dc1 Version bump 2016-02-11 08:59:34 -06:00
Matthew L. Fidler
bc13d5d7b0 Merge remote-tracking branch 'origin/master' into fonts
Conflicts:
	mode-icons.el
2016-02-11 08:57:24 -06:00
Matthew L. Fidler
74bf049996 Make minor-modes have menus by using `compose-region'
Also make every system register the font for the icon
2016-02-11 08:43:27 -06:00
Matthew L. Fidler
e33fd86eb9 Add more icons, remove non-functioning properties 2016-02-10 01:27:26 -06:00
Matthew L. Fidler
49bbb40af5 Add font awesome to options 2016-02-10 00:35:46 -06:00
Matthew L. Fidler
2287612402 Add calculator 2016-02-10 00:34:28 -06:00
Matthew L. Fidler
29c021e8e7 Diminish Flyspell and Org-Indent minor-mode 2016-02-10 00:28:01 -06:00
Matthew L. Fidler
343274e843 Add auto-revert-mode 2016-02-10 00:25:19 -06:00
Matthew L. Fidler
b3c0399fb9 Add FontAwesome fonts 2016-02-10 00:01:23 -06:00
Matthew L. Fidler
6e8339aa3c Add Scala from Fizzed font 2016-02-09 23:20:16 -06:00
Matthew L. Fidler
57acfed666 Allow mode-icons fonts to work in windows 2016-02-09 23:07:44 -06:00
Matthew L. Fidler
72736b5a92 Make sure text is supported 2016-02-09 10:11:24 -06:00
Matthew L. Fidler
c7a0a4320d Fix some typos 2016-02-09 10:09:40 -06:00
Matthew L. Fidler
11c523da66 Add font-based icons for supported platforms & jpg support 2016-02-09 09:29:58 -06:00
Matthew L. Fidler
ba648eb5b3 Add mode-icons-p property 2016-02-09 08:05:13 -06:00